From c340330e92f652aa96e4a3dcec5cb60c63449ac7 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 2 Feb 2006 19:57:51 +0000 Subject: [PATCH] more tweaks git-svn-id: svn://svn.open-ils.org/ILS/trunk@2944 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/chrome/content/util/browser.xul | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/browser.xul b/Open-ILS/xul/staff_client/chrome/content/util/browser.xul index d748ad1d8b..ac4ece45c2 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/browser.xul +++ b/Open-ILS/xul/staff_client/chrome/content/util/browser.xul @@ -40,7 +40,12 @@ g.error.sdump('D_TRACE','my_init() for util_browser.xul'); g.cgi = new CGI(); - var name = g.cgi.param('tab_name') || g.cgi.param('name') || 'Browser'; + var name = g.cgi.param('tab_name') || g.cgi.param('name') || null; + if (!name) { + if (typeof window.xulG == 'object') { + name = window.xulG.name || window.xulG.tab_name || null; + } + } var session = g.cgi.param('session'); var url; try { url = g.cgi.param('url') || xulG.url } catch(E) { dump(E + '\n'); }; if (!url) url = urls.browser; @@ -55,7 +60,7 @@ ); if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') { - try { window.xulG.set_tab_name(name); } catch(E) { alert(E); } + if (name) try { window.xulG.set_tab_name(name); } catch(E) { alert(E); } } if (typeof window.xulG && window.xulG.show_nav_buttons) { document.getElementById('back').hidden = false; -- 2.43.2