From 750bb34f433a89be99494d1c82a750d5e3f9c41a Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 15 May 2009 08:21:17 +0000 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/chrome/content/circ/offline.js | 2 +- Open-ILS/xul/staff_client/chrome/content/main/menu.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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); }; -- 2.11.0