From c2fab6070f01f80c1355e996c35f92eebfac0fd2 Mon Sep 17 00:00:00 2001 From: zero Date: Mon, 16 Jul 2007 04:54:32 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=97=90=EC=84=9C=20=EB=A9=94=EB=89=B4?= =?UTF-8?q?=EC=9D=98=20child=EB=A5=BC=20visible/hidden=EC=8B=9C=ED=82=AC?= =?UTF-8?q?=EB=95=8C=20=EA=B4=80=EB=A6=AC=EC=9E=90=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EB=A0=88=EC=9D=B4=EC=95=84=EC=9B=83=EC=9D=98=20?= =?UTF-8?q?=EB=86=92=EC=9D=B4=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/trunk@1941 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/tree_menu.js | 6 +++++- modules/admin/tpl/js/admin.js | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/common/js/tree_menu.js b/common/js/tree_menu.js index 2aa77e913..ca2426694 100644 --- a/common/js/tree_menu.js +++ b/common/js/tree_menu.js @@ -295,19 +295,23 @@ function toggleFolder(zone_id) { var line_icon = xGetElementById(zone_id+'_line_icon'); var folder_icon = xGetElementById(zone_id+'_folder_icon'); + var height = 0; + // 대상의 자식 노드들이 숨겨져 있다면 열고 아니면 닫기 if(child_zone.style.display == "block") { + height = xHeight(child_zone)*-1; child_zone.style.display = "none"; if(line_icon.src.indexOf('bottom')>0) line_icon.src = tree_plus_bottom_icon.src; else line_icon.src = tree_plus_icon.src; - folder_icon.src = tree_folder_icon.src; } else { if(line_icon.src.indexOf('bottom')>0) line_icon.src = tree_minus_bottom_icon.src; else line_icon.src = tree_minus_icon.src; folder_icon.src = tree_open_folder_icon.src; child_zone.style.display = "block"; + height = xHeight(child_zone); } + if(typeof(fixAdminLayoutFooter)=='function') fixAdminLayoutFooter( height ); } // 노드의 글자 선택시 diff --git a/modules/admin/tpl/js/admin.js b/modules/admin/tpl/js/admin.js index a0ecd614c..5c1486fa3 100644 --- a/modules/admin/tpl/js/admin.js +++ b/modules/admin/tpl/js/admin.js @@ -22,6 +22,8 @@ function fixAdminLayoutFooter(height) { var newHeight = clientHeight - footerHeight - headerHeight + 71 + 38; if(newHeight