Added tab names for event handler in `UI/TabMenu/Simple`
authorAlexander Ebert <ebert@woltlab.com>
Fri, 10 Jul 2015 21:30:49 +0000 (23:30 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 10 Jul 2015 21:30:57 +0000 (23:30 +0200)
wcfsetup/install/files/js/WoltLab/WCF/UI/TabMenu/Simple.js

index 4f26561f819bb0426491f1de484f200abde768e2..027e86b0457c90be373fe13df931f4fa29b5e57c 100644 (file)
@@ -220,7 +220,9 @@ define(['Dictionary', 'DOM/Traverse', 'DOM/Util', 'EventHandler'], function(Dict
                        if (disableEvent !== true) {
                                EventHandler.fire('com.woltlab.wcf.simpleTabMenu_' + this._containerId, 'select', {
                                        active: tab,
+                                       activeName: name,
                                        previous: oldTab,
+                                       previousName: oldTab.getAttribute('data-name')
                                });
                                
                                if (this._isLegacy && typeof window.jQuery === 'function') {