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