focus on textbox after list action
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Sep 2008 04:22:49 +0000 (04:22 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Sep 2008 04:22:49 +0000 (04:22 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10671 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 96fa7d2..eea1222 100644 (file)
@@ -87,7 +87,10 @@ circ.checkin.prototype = {
                                        'save_columns' : [ [ 'command' ], function() { obj.list.save_columns(); } ],
                                        'sel_clip' : [
                                                ['command'],
-                                               function() { obj.list.clipboard(); }
+                                               function() { 
+                            obj.list.clipboard(); 
+                            obj.controller.view.checkin_barcode_entry_textbox.focus();
+                        }
                                        ],
                                        'sel_edit' : [
                                                ['command'],
@@ -241,9 +244,18 @@ circ.checkin.prototype = {
                                                        obj.list.print(p);
                                                }
                                        ],
-                                       'cmd_csv_to_clipboard' : [ ['command'], function() { obj.list.dump_csv_to_clipboard(); } ],
-                                       'cmd_csv_to_printer' : [ ['command'], function() { obj.list.dump_csv_to_printer(); } ],
-                                       'cmd_csv_to_file' : [ ['command'], function() { obj.list.dump_csv_to_file( { 'defaultFileName' : 'checked_in.txt' } ); } ]
+                                       'cmd_csv_to_clipboard' : [ ['command'], function() { 
+                        obj.list.dump_csv_to_clipboard(); 
+                        obj.controller.view.checkin_barcode_entry_textbox.focus();
+                    } ],
+                                       'cmd_csv_to_printer' : [ ['command'], function() { 
+                        obj.list.dump_csv_to_printer(); 
+                        obj.controller.view.checkin_barcode_entry_textbox.focus();
+                    } ],
+                                       'cmd_csv_to_file' : [ ['command'], function() { 
+                        obj.list.dump_csv_to_file( { 'defaultFileName' : 'checked_in.txt' } ); 
+                        obj.controller.view.checkin_barcode_entry_textbox.focus();
+                    } ]
                                }
                        }
                );
index 69dd353..602cf9f 100644 (file)
@@ -113,7 +113,10 @@ circ.copy_status.prototype = {
                                        'save_columns' : [ [ 'command' ], function() { obj.list.save_columns(); } ],
                                        'sel_clip' : [
                                                ['command'],
-                                               function() { obj.list.clipboard(); }
+                                               function() { 
+                                                       obj.list.clipboard(); 
+                                                       obj.controller.view.copy_status_barcode_entry_textbox.focus();
+                                               }
                                        ],
                                        'sel_checkin' : [
                                                ['command'],
@@ -328,9 +331,18 @@ circ.copy_status.prototype = {
                                                        }
                                                }
                                        ],
-                                       'cmd_csv_to_clipboard' : [ ['command'], function() { obj.list.dump_csv_to_clipboard(); } ],
-                                       'cmd_csv_to_printer' : [ ['command'], function() { obj.list.dump_csv_to_printer(); } ],
-                                       'cmd_csv_to_file' : [ ['command'], function() { obj.list.dump_csv_to_file( { 'defaultFileName' : 'item_status.txt' } ); } ],
+                                       'cmd_csv_to_clipboard' : [ ['command'], function() { 
+                                               obj.list.dump_csv_to_clipboard(); 
+                                               obj.controller.view.copy_status_barcode_entry_textbox.focus();
+                                       } ],
+                                       'cmd_csv_to_printer' : [ ['command'], function() { 
+                                               obj.list.dump_csv_to_printer(); 
+                                               obj.controller.view.copy_status_barcode_entry_textbox.focus();
+                                       } ],
+                                       'cmd_csv_to_file' : [ ['command'], function() { 
+                                               obj.list.dump_csv_to_file( { 'defaultFileName' : 'item_status.txt' } ); 
+                                               obj.controller.view.copy_status_barcode_entry_textbox.focus();
+                                       } ],
 
                                        'cmd_add_items' : [
                                                ['command'],