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

(-)a/koha-tmpl/opac-tmpl/prog/en/js/script.js (+9 lines)
Lines 72-74 YAHOO.util.Event.onContentReady("listsmenu", function () { Link Here
72
		YAHOO.util.Event.addListener("listsmenulink", "click", listMenu.show, null, listMenu);
72
		YAHOO.util.Event.addListener("listsmenulink", "click", listMenu.show, null, listMenu);
73
		YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionlistMenu);
73
		YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionlistMenu);
74
 });
74
 });
75
76
jQuery.fn.preventDoubleFormSubmit = function() {
77
    jQuery(this).submit(function() {
78
        if (this.beenSubmitted)
79
            return false;
80
        else
81
            this.beenSubmitted = true;
82
    });
83
};
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt (-2 / +3 lines)
Lines 15-20 Link Here
15
 }
15
 }
16
16
17
 $(document).ready(function() {
17
 $(document).ready(function() {
18
    $('#hold-request-form').preventDoubleFormSubmit();
19
18
    var copiesRowId = null;
20
    var copiesRowId = null;
19
    var wasSpecific = false;
21
    var wasSpecific = false;
20
    var lastCopiesRowId = null;
22
    var lastCopiesRowId = null;
Lines 226-232 Link Here
226
	      </div>
228
	      </div>
227
	      [% END %]
229
	      [% END %]
228
230
229
            <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
231
            <form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form">
230
            <input type="hidden" name="place_reserve" value="1"/>
232
            <input type="hidden" name="place_reserve" value="1"/>
231
233
232
            <!-- These values are set dynamically by js -->
234
            <!-- These values are set dynamically by js -->
233
- 

Return to bug 4054