fix disappearing cursor/caret for Check In
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Apr 2011 14:44:11 +0000 (14:44 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Apr 2011 14:44:11 +0000 (14:44 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_1@20319 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/checkin.js

index a93ec54..b68be4c 100644 (file)
@@ -305,16 +305,19 @@ circ.checkin.prototype = {
                 { 
                     'barcode' : barcode,
                      'disable_textbox' : function() { 
+                        obj.controller.view.checkin_barcode_entry_textbox.blur();
                         obj.controller.view.checkin_barcode_entry_textbox.disabled = true; 
                         obj.controller.view.cmd_checkin_submit_barcode.setAttribute('disabled', 'true'); 
                     },
                     'enable_textbox' : function() { 
                         obj.controller.view.checkin_barcode_entry_textbox.disabled = false; 
                         obj.controller.view.cmd_checkin_submit_barcode.setAttribute('disabled', 'false'); 
+                        obj.controller.view.checkin_barcode_entry_textbox.focus();
                     },
                     'checkin_result' : function(checkin) {
                         obj.controller.view.checkin_barcode_entry_textbox.disabled = false;
                         obj.controller.view.cmd_checkin_submit_barcode.setAttribute('disabled', 'false'); 
+                        obj.controller.view.checkin_barcode_entry_textbox.focus();
                         obj.checkin2(checkin,backdate);
                     }
                 },