*/
_button: null,
+ _container: null,
+
/**
* sidebar visibility
* @var boolean
*/
_create: function() {
this.element.wrap('<div class="collapsibleSidebar"></div>');
+ this._container = this.element.parent('div');
// create toggle button
- this._button = $('<span class="collapsibleSidebarButton" title="' + WCF.Language.get('wcf.global.button.collapsible') + '"></span>').appendTo(this.element.parent('div'));
+ this._button = $('<span class="collapsibleSidebarButton" title="' + WCF.Language.get('wcf.global.button.collapsible') + '"></span>').appendTo(this._container);
// bind event
this._button.click($.proxy(this._toggle, this));
}
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');
},
/**
}
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');
}
});