[open-ils-commits] r10671 - trunk/Open-ILS/xul/staff_client/server/circ

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Sep 22 00:22:52 EDT 2008


Author: phasefx
Date: 2008-09-22 00:22:49 -0400 (Mon, 22 Sep 2008)
New Revision: 10671

Modified:
   trunk/Open-ILS/xul/staff_client/server/circ/checkin.js
   trunk/Open-ILS/xul/staff_client/server/circ/copy_status.js
Log:
focus on textbox after list action

Modified: trunk/Open-ILS/xul/staff_client/server/circ/checkin.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/checkin.js	2008-09-22 03:57:45 UTC (rev 10670)
+++ trunk/Open-ILS/xul/staff_client/server/circ/checkin.js	2008-09-22 04:22:49 UTC (rev 10671)
@@ -87,7 +87,10 @@
 					'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 @@
 							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();
+                    } ]
 				}
 			}
 		);

Modified: trunk/Open-ILS/xul/staff_client/server/circ/copy_status.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/copy_status.js	2008-09-22 03:57:45 UTC (rev 10670)
+++ trunk/Open-ILS/xul/staff_client/server/circ/copy_status.js	2008-09-22 04:22:49 UTC (rev 10671)
@@ -113,7 +113,10 @@
 					'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 @@
 							}
 						}
 					],
-					'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'],



More information about the open-ils-commits mailing list