changeset 757:3622720909c4

Clear inactive tab DOM node when changing active tab.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 20 Nov 2014 09:03:33 +0200
parents 5eae5148c611
children 3b973041f6bb
files admin.js
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/admin.js	Thu Nov 20 09:03:16 2014 +0200
+++ b/admin.js	Thu Nov 20 09:03:33 2014 +0200
@@ -67,6 +67,11 @@
         activeTabs[tabset] = id;
         setTimeout("refreshDispatch"+ tabset +"('"+ id +"');", 10);
       }
+      else
+      {
+        // Clear inactive tabs
+        tabContent.innerHTML = "";
+      }
     }
   }
 }