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

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

index 7997ab5..9a36d7e 100644 (file)
@@ -537,6 +537,7 @@ circ.checkin.prototype = {
                 'barcode' : barcode,
                 'disable_textbox' : function() { 
                     if (!async) {
+                        textbox.blur();
                         textbox.disabled = true; 
                         textbox.setAttribute('disabled', 'true'); 
                     }
@@ -544,9 +545,11 @@ circ.checkin.prototype = {
                 'enable_textbox' : function() { 
                     textbox.disabled = false; 
                     textbox.setAttribute('disabled', 'false'); 
+                    textbox.focus();
                 },
                 'checkin_result' : function(checkin) {
                     textbox.disabled = false;
+                    textbox.focus();
                     //obj.controller.view.cmd_checkin_submit_barcode.setAttribute('disabled', 'false'); 
                     obj.checkin2(checkin,backdate,row_params);
                 },