projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/new/bug_6875'
[koha.git]
/
koha-tmpl
/
intranet-tmpl
/
prog
/
en
/
js
/
staff-global.js
diff --git
a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js
b/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js
index
f491773
..
24b785d
100644
(file)
--- a/
koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js
+++ b/
koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js
@@
-92,4
+92,13
@@
function checkEnter(e){ //e is event object passed from function invocation
function clearHoldFor(){
$.cookie("holdfor",null, { path: "/", expires: 0 });
function clearHoldFor(){
$.cookie("holdfor",null, { path: "/", expires: 0 });
-}
\ No newline at end of file
+}
+
+jQuery.fn.preventDoubleFormSubmit = function() {
+ jQuery(this).submit(function() {
+ if (this.beenSubmitted)
+ return false;
+ else
+ this.beenSubmitted = true;
+ });
+};
\ No newline at end of file