From a1c63a29120ee91faadcfb06c739cfaf02c170b1 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 9 Jan 2012 21:16:35 +0100 Subject: [PATCH] MINOR Only setting style attributes in LeftAndMain panel handling if it was previously set --- admin/javascript/LeftAndMain.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index a5b996313..78a7b4edc 100644 --- a/admin/javascript/LeftAndMain.js +++ b/admin/javascript/LeftAndMain.js @@ -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.