From 3f741a0795c9531f0c244b81bd208453be1062cb Mon Sep 17 00:00:00 2001 From: phasefx Date: Sat, 29 Apr 2006 12:45:20 +0000 Subject: [PATCH] fixed a tab bug and added a new developer option (unhide all tabs) git-svn-id: svn://svn.open-ils.org/ILS/trunk@3969 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/chrome/content/main/menu.js | 14 +++++++++++++- .../chrome/content/main/menu_frame_menus.xul | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) 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 eb57a1235e..9b0046eb9a 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -373,6 +373,15 @@ main.menu.prototype = { } } ], + 'cmd_restore_all_tabs' : [ + ['oncommand'], + function() { + var tabs = obj.controller.view.tabs; + for (var i = 0; i < tabs.childNodes.length; i++) { + tabs.childNodes[i].hidden = false; + } + } + ], }; JSAN.use('util.controller'); @@ -472,7 +481,10 @@ main.menu.prototype = { if (!tab.hidden) tab_flag = false; } - if (tab_flag) this.new_tab(); + if (tab_flag) { + this.controller.view.tabs.selectedIndex = 0; + this.new_tab(); + } }, 'find_free_tab' : function() { diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul index 903dd03bba..a21a48b64d 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul @@ -47,6 +47,7 @@ + @@ -200,6 +201,7 @@ + -- 2.43.2