From: Alexander Ebert Date: Tue, 8 Jul 2014 19:42:14 +0000 (+0200) Subject: Fixed poll option width in message tab X-Git-Tag: 2.1.0_Alpha_1~602^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1e4ed15948a5b1b119e877aff958c804c69152a6;p=GitHub%2FWoltLab%2FWCF.git Fixed poll option width in message tab --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 15ebee4cde..61bf2d41c0 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -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 diff --git a/wcfsetup/install/files/js/WCF.Poll.js b/wcfsetup/install/files/js/WCF.Poll.js index 670fa688c6..305a0cc391 100644 --- a/wcfsetup/install/files/js/WCF.Poll.js +++ b/wcfsetup/install/files/js/WCF.Poll.js @@ -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(); } });