@@ -, +, @@ patrons -- - the user knows that "something" is happening and that the form isn't ------- borrower already exists. You will have the option to view the original record, edit the original record, or create a new patron anyway graphic when you hover over the "body" of the page, as well as any links or any inputs/buttons of the type "submit" within that form is not re-submitted. Eventually you will be taken to the new patron's record (no mention of duplication will occur) -- --- .../intranet-tmpl/prog/en/css/staff-global.css | 4 ++++ koha-tmpl/intranet-tmpl/prog/en/js/members.js | 2 +- koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js | 1 + .../prog/en/modules/members/memberentrygen.tt | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -2559,3 +2559,7 @@ button.closebtn{padding:0;cursor:pointer;background:transparent;border:0;-webkit .btn-group select { font-size: 13px; } + +.waiting { + cursor: wait; +} --- a/koha-tmpl/intranet-tmpl/prog/en/js/members.js +++ a/koha-tmpl/intranet-tmpl/prog/en/js/members.js @@ -154,7 +154,7 @@ function check_form_borrowers(nav){ alert(message+"\n"+message_champ); return false; } else { - document.form.submit(); + return true; } } --- a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js +++ a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js @@ -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 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -33,6 +33,7 @@ } [% END %] $("#dateofbirth").datepicker({ maxDate: "-1D" }); + $("#entryform").preventDoubleFormSubmit(); }); function clear_entry(node) { --