From: Alexander Ebert Date: Fri, 11 Nov 2011 00:32:17 +0000 (+0100) Subject: Removed unnecessary code X-Git-Tag: 2.0.0_Beta_1~1607^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a2a6b4f504e4c24141e020bc6e1f159283d700ef;p=GitHub%2FWoltLab%2FWCF.git Removed unnecessary code --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index a412b70c76..820573b40a 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -3002,6 +3002,8 @@ $.widget('ui.wcfSidebar', { */ _button: null, + _container: null, + /** * sidebar visibility * @var boolean @@ -3013,9 +3015,10 @@ $.widget('ui.wcfSidebar', { */ _create: function() { this.element.wrap('
'); + this._container = this.element.parent('div'); // create toggle button - this._button = $('').appendTo(this.element.parent('div')); + this._button = $('').appendTo(this._container); // bind event this._button.click($.proxy(this._toggle, this)); @@ -3042,14 +3045,7 @@ $.widget('ui.wcfSidebar', { } this._visible = true; - this.element.parent('div').removeClass('collapsedSidebar'); - this._button.html('«'); - - /* - this.element.wcfBlindIn('horizontal', $.proxy(function() { - this._button.html('«'); - }, this)); - */ + this._container.removeClass('collapsedSidebar'); }, /** @@ -3061,14 +3057,7 @@ $.widget('ui.wcfSidebar', { } this._visible = false; - this.element.parent('div').addClass('collapsedSidebar'); - this._button.html('»'); - - /* - this.element.wcfBlindOut('horizontal', $.proxy(function() { - this._button.html('»'); - }, this)); - */ + this._container.addClass('collapsedSidebar'); } });