MINOR Only setting style attributes in LeftAndMain panel handling if it was previously set

This commit is contained in:
Ingo Schommer 2012-01-09 21:16:35 +01:00
parent 0caf1991cf
commit a1c63a2912

View File

@ -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.