Fixed issues with updated jQuery UI API
authorAlexander Ebert <ebert@woltlab.com>
Fri, 26 Apr 2013 23:30:13 +0000 (01:30 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 26 Apr 2013 23:30:13 +0000 (01:30 +0200)
wcfsetup/install/files/js/WCF.js

index 6c08977146d76ad585bb1b11bfb828d53c448c85..309f193b262fa77aea501c6757aefd0253f20832 100755 (executable)
@@ -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);
        },
        
        /**