From 1e4ed15948a5b1b119e877aff958c804c69152a6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 8 Jul 2014 21:42:14 +0200 Subject: [PATCH] Fixed poll option width in message tab --- wcfsetup/install/files/js/WCF.Message.js | 2 +- wcfsetup/install/files/js/WCF.Poll.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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(); } }); -- 2.20.1