From: phasefx Date: Fri, 15 May 2009 08:21:17 +0000 (+0000) Subject: simple fix for the Exit button in offline interface if invoked from Circulation menu... X-Git-Tag: sprint4-merge-nov22~9975 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=750bb34f433a89be99494d1c82a750d5e3f9c41a;p=working%2FEvergreen.git 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 git-svn-id: svn://svn.open-ils.org/ILS/trunk@13167 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/circ/offline.js b/Open-ILS/xul/staff_client/chrome/content/circ/offline.js index c933497595..4d083e328c 100644 --- a/Open-ILS/xul/staff_client/chrome/content/circ/offline.js +++ b/Open-ILS/xul/staff_client/chrome/content/circ/offline.js @@ -58,7 +58,7 @@ circ.offline.prototype = { ], 'cmd_exit' : [ ['command'], - function() { window.close(); } + function() { try { xulG.close_tab(); } catch(E) { window.close(); } } ], } } diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index 6f98ba54d3..f6c8ad53e8 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -1173,6 +1173,7 @@ main.menu.prototype = { 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); };