[open-ils-commits] r8911 - in
trunk/Open-ILS/xul/staff_client/chrome: content/main locale/en-US
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 7 18:07:33 EST 2008
Author: phasefx
Date: 2008-03-07 17:34:51 -0500 (Fri, 07 Mar 2008)
New Revision: 8911
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
Log:
bring a little sanity to blank tab labels
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2008-03-07 21:50:08 UTC (rev 8910)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2008-03-07 22:34:51 UTC (rev 8911)
@@ -717,7 +717,6 @@
var tab = this.controller.view.tabs.childNodes[idx];
var panel = this.controller.view.panels.childNodes[ idx ];
while ( panel.lastChild ) panel.removeChild( panel.lastChild );
- tab.setAttribute('label', offlineStrings.getFormattedString('menu.close_tab.update_tab_label', [(idx+1)]));
if (idx == 0) {
try {
this.controller.view.tabs.advanceSelectedTab(+1);
@@ -794,7 +793,8 @@
var tab = this.controller.view.tabs.childNodes[ tc ];
tab.hidden = false;
if (!content_params) content_params = {};
- if (!params) params = { 'tab_name' : offlineStrings.getString('menu.new_tab.tab', [(tc+1)]) };
+ if (!params) params = {};
+ if (!params.tab_name) params.tab_name = offlineStrings.getString('menu.new_tab.tab');
if (!params.nofocus) params.focus = true; /* make focus the default */
try {
if (params.focus) this.controller.view.tabs.selectedIndex = tc;
Modified: trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2008-03-07 21:50:08 UTC (rev 8910)
+++ trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties 2008-03-07 22:34:51 UTC (rev 8911)
@@ -120,8 +120,7 @@
menu.cmd_shutdown.prompt=Exit Evergreen completely?
menu.spawn_search.msg=Editor would like to search for: %1$s
menu.close_all_tabs.error=Error closing all tabs
-menu.close_tab.update_tab_label=Tab %1$s
-menu.new_tab.tab=Tab %1$s
+menu.new_tab.tab=Tab
menu.set_tab.error=pause for error
main.testing=Testing
main.transaction_export.title=Save Transaction File As
More information about the open-ils-commits
mailing list