mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Only setting style attributes in LeftAndMain panel handling if it was previously set
This commit is contained in:
parent
0caf1991cf
commit
a1c63a2912
@ -212,9 +212,9 @@
|
||||
|
||||
newContentEl
|
||||
.removeClass(layoutClasses.join(' '))
|
||||
.addClass(origLayoutClasses.join(' '))
|
||||
.attr('style', origStyle)
|
||||
.css('visibility', 'hidden');
|
||||
.addClass(origLayoutClasses.join(' '));
|
||||
if(origStyle) newContentEl.attr('style', origStyle)
|
||||
newContentEl.css('visibility', 'hidden');
|
||||
|
||||
// Allow injection of inline styles, as they're not allowed in the document body.
|
||||
// Not handling this through jQuery.ondemand to avoid parsing the DOM twice.
|
||||
|
Loading…
Reference in New Issue
Block a user