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;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Disable action of disabled buttons
|
||||||
|
$(document).on('click', 'a.disabled', function() {
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
// Show and hide loader on ajax callbacks
|
// Show and hide loader on ajax callbacks
|
||||||
$('*[data-remote]').bind('ajax:beforeSend', function() {
|
$('*[data-remote]').bind('ajax:beforeSend', function() {
|
||||||
$('#loader').show();
|
$('#loader').show();
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
= link_to t('.action_receive'), receive_order_path(order), class: 'btn btn-small btn-success'
|
= link_to t('.action_receive'), receive_order_path(order), class: 'btn btn-small btn-success'
|
||||||
|
|
||||||
%td
|
%td
|
||||||
= link_to t('ui.edit'), '#', class: 'btn btn-small disabled'
|
= link_to t('ui.edit'), '#', class: 'btn btn-small disabled', tabindex: -1
|
||||||
= link_to t('ui.show'), order, class: 'btn btn-small'
|
= link_to t('ui.show'), order, class: 'btn btn-small'
|
||||||
= link_to t('ui.delete'), order, confirm: t('.confirm_delete'), method: :delete,
|
= link_to t('ui.delete'), order, confirm: t('.confirm_delete'), method: :delete,
|
||||||
class: 'btn btn-small btn-danger'
|
class: 'btn btn-small btn-danger'
|
||||||
|
|
Loading…
Reference in a new issue