* @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
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();
}
});