View | Details | Raw Unified | Return to bug 4054
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js (-1 / +10 lines)
Lines 92-95 function checkEnter(e){ //e is event object passed from function invocation Link Here
92
92
93
function clearHoldFor(){
93
function clearHoldFor(){
94
	$.cookie("holdfor",null, { path: "/", expires: 0 });
94
	$.cookie("holdfor",null, { path: "/", expires: 0 });
95
}
95
}
96
97
jQuery.fn.preventDoubleFormSubmit = function() {
98
    jQuery(this).submit(function() {
99
        if (this.beenSubmitted)
100
            return false;
101
        else
102
            this.beenSubmitted = true;
103
    });
104
};
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-2 / +3 lines)
Lines 127-132 function checkMultiHold() { Link Here
127
			$("#requestany").attr("checked","checked");
127
			$("#requestany").attr("checked","checked");
128
		}
128
		}
129
	});
129
	});
130
131
    $('#hold-request-form').preventDoubleFormSubmit();
130
 });
132
 });
131
133
132
// ]]>
134
// ]]>
Lines 238-244 function checkMultiHold() { Link Here
238
  <fieldset class="rows left">
240
  <fieldset class="rows left">
239
    <legend>Hold details</legend>
241
    <legend>Hold details</legend>
240
        [% UNLESS ( multi_hold ) %]
242
        [% UNLESS ( multi_hold ) %]
241
            <form action="placerequest.pl" method="post" onsubmit="return check();" name="form">
243
            <form action="placerequest.pl" method="post" onsubmit="return check();" name="form" id="hold-request-form">
242
        [% ELSE %]
244
        [% ELSE %]
243
            <form action="placerequest.pl" method="post" onsubmit="return checkMultiHold();" name="form">
245
            <form action="placerequest.pl" method="post" onsubmit="return checkMultiHold();" name="form">
244
        [% END %]
246
        [% END %]
245
- 

Return to bug 4054