delete tab contents when closing the tab instead of hiding and deleting when the...
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 29 Sep 2006 21:32:46 +0000 (21:32 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 29 Sep 2006 21:32:46 +0000 (21:32 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6267 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/menu.js

index 7aa28db..9034bd0 100644 (file)
@@ -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 {