better disabled button

This commit is contained in:
wvengen 2013-12-18 22:22:34 +01:00
parent 3d511ea2fb
commit 68c4affb02
2 changed files with 6 additions and 1 deletions

View file

@ -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();