Adds function to reload tab menus
authorMatthias Schmidt <gravatronics@live.com>
Fri, 18 Jan 2013 15:44:27 +0000 (16:44 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 18 Jan 2013 15:44:27 +0000 (16:44 +0100)
wcfsetup/install/files/js/WCF.js

index 7292161c0c1f06203bb2227dbe718a50a340987d..34f1ee58c01f9e9f19c923602281eef320055042 100755 (executable)
@@ -3012,6 +3012,14 @@ WCF.TabMenu = {
                this._didInit = true;
        },
        
+       /**
+        * Reloads the tab menus.
+        */
+       reload: function() {
+               this._containers = { };
+               this.init();
+       },
+       
        /**
         * Force display of first erroneous tab, returns true, if at
         * least one tab contains an error.