From: Alexander Ebert Date: Fri, 26 Apr 2013 23:30:13 +0000 (+0200) Subject: Fixed issues with updated jQuery UI API X-Git-Tag: 2.0.0_Beta_1~296 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1682f3cbb39d680ee21bbc06baade1ae225ce90a;p=GitHub%2FWoltLab%2FWCF.git Fixed issues with updated jQuery UI API --- 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); }, /**