mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 13:11:52 +02:00
Fix for data-disable attribute on ajax link.
This commit is contained in:
parent
b8717c04bb
commit
d4870293e1
@ -600,6 +600,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
if($element.attr('data-disable') == 'true')
|
||||
{
|
||||
$element.addClass('disabled');
|
||||
$element.prop('disabled', true);
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
@ -620,7 +621,10 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
|
||||
if($element.attr('data-disable') == 'true')
|
||||
{
|
||||
$element.removeClass('disabled');
|
||||
setTimeout( function(){
|
||||
$element.removeClass('disabled');
|
||||
$element.prop('disabled', false)
|
||||
}, 4000 );
|
||||
}
|
||||
},
|
||||
success: function (response)
|
||||
|
Loading…
x
Reference in New Issue
Block a user