From 1682f3cbb39d680ee21bbc06baade1ae225ce90a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 27 Apr 2013 01:30:13 +0200 Subject: [PATCH] Fixed issues with updated jQuery UI API --- wcfsetup/install/files/js/WCF.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 6c08977146..309f193b26 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -7711,6 +7711,8 @@ WCF.UserPanel = Class.extend({ var $dropdownMenu = this._container.children('.dropdownMenu'); $dropdownMenu.children('.jsDropdownPlaceholder').remove(); $('' + data.returnValues.template).prependTo($dropdownMenu); + + this._after($dropdownMenu); } else { this._container.removeClass('dropdown').empty(); @@ -7719,7 +7721,14 @@ WCF.UserPanel = Class.extend({ // remove badge this._container.find('.badge').remove(); } - } + }, + + /** + * Execute actions after the dropdown menu has been populated. + * + * @param object dropdownMenu + */ + _after: function(dropdownMenu) { } }); /** @@ -8127,7 +8136,7 @@ $.widget('ui.wcfTabs', $.ui.tabs, { } } - $.ui.tabs.prototype.select.apply(this, arguments); + this._setOption('active', index); }, /** -- 2.20.1