mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Force full redraw when panels are initiated
This commit is contained in:
parent
34d3f29a95
commit
6e9bf8859e
@ -96,10 +96,12 @@
|
|||||||
// Save collapsed state in cookie
|
// Save collapsed state in cookie
|
||||||
if($.cookie && this.attr('id')) $.cookie('cms-panel-collapsed-' + this.attr('id'), !bool, {path: '/', expires: 31});
|
if($.cookie && this.attr('id')) $.cookie('cms-panel-collapsed-' + this.attr('id'), !bool, {path: '/', expires: 31});
|
||||||
|
|
||||||
if(!silent) {
|
// TODO Fix redraw order (inner to outer), and re-enable silent flag
|
||||||
|
// to avoid multiple expensive redraws on a single load.
|
||||||
|
// if(!silent) {
|
||||||
this.trigger('toggle', bool);
|
this.trigger('toggle', bool);
|
||||||
this.trigger(bool ? 'expand' : 'collapse');
|
this.trigger(bool ? 'expand' : 'collapse');
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
expandPanel: function(force) {
|
expandPanel: function(force) {
|
||||||
|
Loading…
Reference in New Issue
Block a user