Bug 9783 - can hit submit twice when adding patrons
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / js / staff-global.js
index 525e13d..2bf385f 100644 (file)
@@ -39,6 +39,7 @@ function clearHoldFor(){
 
 jQuery.fn.preventDoubleFormSubmit = function() {
     jQuery(this).submit(function() {
+    $("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting');
         if (this.beenSubmitted)
             return false;
         else