Bug 13415 [QA Followup] - Change bind to on, revert barcode disable
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 12 Dec 2014 11:53:33 +0000 (06:53 -0500)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 19 Dec 2014 20:41:19 +0000 (17:41 -0300)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Tested according to test plan, passes tests and QA script.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt

index 04b9d61..6963c90 100644 (file)
@@ -60,10 +60,7 @@ function toggle_onsite_checkout(){
 }
 
 $(document).ready(function() {
-    [% IF !NEEDSCONFIRMATION %]
-        $('#barcode').prop('disabled', false).focus();
-    [% END %]
-    $('#mainform').bind('submit',function() {
+    $('#mainform').on('submit',function() {
         $('#barcode').on('keypress',function(event) {
             $('#barcodeSubmittedModal').modal();
             event.preventDefault(); }
@@ -539,7 +536,11 @@ No patron matched <span class="ex">[% message %]</span>
 
        <div class="hint">Enter item barcode:</div>
 
-    <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
+    [% IF NEEDSCONFIRMATION %]
+        <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
+    [% ELSE %]
+        <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
+    [% END %]
     <button type="submit" class="btn">Check out</button>
 
     <div class="date-select">