[open-ils-commits] r13167 - in trunk/Open-ILS/xul/staff_client/chrome/content: circ main (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri May 15 04:21:21 EDT 2009


Author: phasefx
Date: 2009-05-15 04:21:17 -0400 (Fri, 15 May 2009)
New Revision: 13167

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline.js
   trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
Log:
simple fix for the Exit button in offline interface if invoked from Circulation menu.  Normally I would just hide it, but let's try this instead

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline.js	2009-05-14 21:32:33 UTC (rev 13166)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline.js	2009-05-15 08:21:17 UTC (rev 13167)
@@ -58,7 +58,7 @@
 						],
 						'cmd_exit' : [
 							['command'],
-							function() { window.close(); }
+							function() { try { xulG.close_tab(); } catch(E) { window.close(); } }
 						],
 					}
 				}

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js	2009-05-14 21:32:33 UTC (rev 13166)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js	2009-05-15 08:21:17 UTC (rev 13167)
@@ -1173,6 +1173,7 @@
 
 		content_params.new_tab = function(a,b,c) { return obj.new_tab(a,b,c); };
 		content_params.set_tab = function(a,b,c) { return obj.set_tab(a,b,c); };
+		content_params.close_tab = function() { return obj.close_tab(); };
 		content_params.new_patron_tab = function(a,b) { return obj.new_patron_tab(a,b); };
 		content_params.set_patron_tab = function(a,b) { return obj.set_patron_tab(a,b); };
 		content_params.set_tab_name = function(name) { tab.setAttribute('label',(idx + 1) + ' ' + name); };



More information about the open-ils-commits mailing list