From af5ae45089b574f3cac1493cb94e3505d0bb2156 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 2 Feb 2006 19:59:19 +0000 Subject: [PATCH] tweaks git-svn-id: svn://svn.open-ils.org/ILS/trunk@2945 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/chrome/content/util/rbrowser.xul | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/rbrowser.xul b/Open-ILS/xul/staff_client/chrome/content/util/rbrowser.xul index e10f11764d..85a7f4736b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/rbrowser.xul +++ b/Open-ILS/xul/staff_client/chrome/content/util/rbrowser.xul @@ -41,7 +41,12 @@ g.error.sdump('D_TRACE','my_init() for util_browser.xul'); g.cgi = new CGI(); - var 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; @@ -56,7 +61,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