Fixed poll option width in message tab
authorAlexander Ebert <ebert@woltlab.com>
Tue, 8 Jul 2014 19:42:14 +0000 (21:42 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 8 Jul 2014 19:42:14 +0000 (21:42 +0200)
wcfsetup/install/files/js/WCF.Message.js
wcfsetup/install/files/js/WCF.Poll.js

index 15ebee4cde1fbdd330d3946af0fc115d9caddb80..61bf2d41c0f1546349c181e9697768ced2efd1fe 100644 (file)
@@ -482,7 +482,7 @@ WCF.Message.SmileyCategories = Class.extend({
         * @param       object          event
         * @param       object          data
         */
-       _click: function(event, data, c) {
+       _click: function(event, data) {
                var $categoryID = parseInt(data.activeTab.tab.data('smileyCategoryID'));
                
                // ignore global category, will always be pre-loaded
index 670fa688c6d935151011ae6d79779b4c1e84d527..305a0cc391025c25dcc03702c711a9584082231b 100644 (file)
@@ -68,11 +68,9 @@ WCF.Poll.Management = Class.extend({
                this._resize();
                
                // update size on tab select
-               var $tabMenuContent = this._container.parents('.tabMenuContent:eq(0)');
-               var $tabMenuContentID = $tabMenuContent.wcfIdentify();
                var self = this;
-               $tabMenuContent.parents('.tabMenuContainer:eq(0)').on('wcftabsactivate', function(event, ui) {
-                       if (ui.newPanel.wcfIdentify() == $tabMenuContentID) {
+               this._container.closest('.messageTabMenu').on('messagetabmenushow', function(event, data) {
+                       if (data.activeTab.name == 'poll') {
                                self._resize();
                        }
                });