better disabled button
This commit is contained in:
parent
3d511ea2fb
commit
68c4affb02
2 changed files with 6 additions and 1 deletions
|
|
@ -107,6 +107,11 @@ $(function() {
|
|||
return false;
|
||||
});
|
||||
|
||||
// Disable action of disabled buttons
|
||||
$(document).on('click', 'a.disabled', function() {
|
||||
return false;
|
||||
});
|
||||
|
||||
// Show and hide loader on ajax callbacks
|
||||
$('*[data-remote]').bind('ajax:beforeSend', function() {
|
||||
$('#loader').show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue