@@ -, +, @@ grayed out if the same action is used multiple times in a row --- .../intranet-tmpl/prog/en/modules/admin/transfer_limits.tt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transfer_limits.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transfer_limits.tt @@ -359,10 +359,12 @@ checkbox.attr('checked', false); $(`#spinner-${id}`).hide(); checkbox.show(); - $('.limit-action').removeClass('disabled'); - $('#value_selector').prop('disabled',false); } }, + complete: function() { + $('.limit-action').removeClass('disabled'); + $('#value_selector').prop('disabled',false); + }, error: function(xhr, status, error) { var errorMessage = xhr.status + ': ' + xhr.statusText alert('Error - ' + errorMessage); @@ -389,10 +391,12 @@ checkbox.attr('checked', true); $(`#spinner-${id}`).hide(); checkbox.show(); - $('.limit-action').removeClass('disabled'); - $('#value_selector').prop('disabled',false); } }, + complete: function() { + $('.limit-action').removeClass('disabled'); + $('#value_selector').prop('disabled',false); + }, error: function(xhr, status, error) { var errorMessage = xhr.status + ': ' + xhr.statusText alert('Error - ' + errorMessage); --