Merge remote-tracking branch 'origin/new/bug_6875'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / js / staff-global.js
index 463c28e..24b785d 100644 (file)
@@ -89,3 +89,16 @@ function checkEnter(e){ //e is event object passed from function invocation
                return true;
        }
 }
+
+function clearHoldFor(){
+       $.cookie("holdfor",null, { path: "/", expires: 0 });
+}
+
+jQuery.fn.preventDoubleFormSubmit = function() {
+    jQuery(this).submit(function() {
+        if (this.beenSubmitted)
+            return false;
+        else
+            this.beenSubmitted = true;
+    });
+};
\ No newline at end of file