From 40a87888a3998f891b0405b7dec9f1a5a3633d45 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Sep 2007 01:13:44 +0000 Subject: [PATCH] elofgren: BUGFIX: Fix gsoc track Ticket #18: "Undefined" Error When Managing Newsletters in Safari (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41883 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/LeftAndMain_left.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/javascript/LeftAndMain_left.js b/javascript/LeftAndMain_left.js index d0b71d4f..755f1e23 100755 --- a/javascript/LeftAndMain_left.js +++ b/javascript/LeftAndMain_left.js @@ -416,9 +416,11 @@ treeactions = { } function fixHeight_left() { - if($('treepanes')) fitToParent('treepanes'); - var st = $('treepanes'); - if(st.resize) st.resize(); + if($('treepanes')) { + fitToParent('treepanes'); + var st = $('treepanes'); + if(st.resize) st.resize(); + } else fitToParent('sitetree_holder'); }