From: pines Date: Fri, 29 Sep 2006 21:32:46 +0000 (+0000) Subject: delete tab contents when closing the tab instead of hiding and deleting when the... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1be7f18a50635a99a09a9546fb62246bc1d7b148;p=evergreen%2Fpines.git delete tab contents when closing the tab instead of hiding and deleting when the tab is set git-svn-id: svn://svn.open-ils.org/ILS/trunk@6267 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 7aa28db469..9034bd0f75 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -637,6 +637,8 @@ main.menu.prototype = { 'close_tab' : function () { var idx = this.controller.view.tabs.selectedIndex; 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','Tab ' + (idx+1)); if (idx == 0) { try {