mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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
|
newContentEl
|
||||||
.removeClass(layoutClasses.join(' '))
|
.removeClass(layoutClasses.join(' '))
|
||||||
.addClass(origLayoutClasses.join(' '))
|
.addClass(origLayoutClasses.join(' '));
|
||||||
.attr('style', origStyle)
|
if(origStyle) newContentEl.attr('style', origStyle)
|
||||||
.css('visibility', 'hidden');
|
newContentEl.css('visibility', 'hidden');
|
||||||
|
|
||||||
// Allow injection of inline styles, as they're not allowed in the document body.
|
// 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.
|
// Not handling this through jQuery.ondemand to avoid parsing the DOM twice.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user