From bb453c1b87db27c5a4e1502bba813163cc44f375 Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 8 Mar 2007 06:47:33 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@334 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/tree_menu.js | 17 +++++++++++++++-- common/tpl/common_header.html | 9 +++++++++ layouts/sample_layout/layout.html | 2 +- modules/layout/tpl.admin/layout_info.html | 2 +- 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/common/js/tree_menu.js b/common/js/tree_menu.js index 09b958746..282625014 100644 --- a/common/js/tree_menu.js +++ b/common/js/tree_menu.js @@ -117,8 +117,18 @@ function drawTreeMenu(oXml, callback_func, resopnse_tags, param) { } } - xInnerHtml(zone, html); + // 출력하려는 zone이 없다면 load후에 출력하도록 함 + if(!zone) { + xAddEventListener(window, 'load', function() { drawTeeMenu(zone_id, menu_id, html); }); + } else { + xInnerHtml(zone, html); + if(manual_select_node_srl) manualSelectNode(menu_id, manual_select_node_srl); + } +} + +function drawTeeMenu(zone_id, menu_id, html) { + xInnerHtml(zone_id, html); if(manual_select_node_srl) manualSelectNode(menu_id, manual_select_node_srl); } @@ -134,7 +144,10 @@ function drawNode(parent_node, menu_id) { var url = node.getAttribute("url"); // url을 확인하여 현재의 url과 동일하다고 판단되면 manual_select_node_srl 에 값을 추가 - if(node_callback_func[menu_id] == moveTreeMenu && url && location.href.indexOf(url) != -1) manual_select_node_srl = node_srl; + if(node_callback_func[menu_id] == moveTreeMenu && url) { + if(typeof(zbfe_url)!="undefined" && zbfe_url==url) manual_select_node_srl = node_srl; + else if(location.href.indexOf(url) != -1) manual_select_node_srl = node_srl; + } // 자식 노드가 있는지 확인 var hasChild = false; diff --git a/common/tpl/common_header.html b/common/tpl/common_header.html index 04bfc969d..9dda8d453 100644 --- a/common/tpl/common_header.html +++ b/common/tpl/common_header.html @@ -15,6 +15,15 @@ + {Context::getHtmlHeader()} diff --git a/layouts/sample_layout/layout.html b/layouts/sample_layout/layout.html index ea2b4eb73..73c0e80bf 100644 --- a/layouts/sample_layout/layout.html +++ b/layouts/sample_layout/layout.html @@ -1,7 +1,7 @@
{$layout_info->top_title} diff --git a/modules/layout/tpl.admin/layout_info.html b/modules/layout/tpl.admin/layout_info.html index 7b0a82aff..32a31e1fe 100644 --- a/modules/layout/tpl.admin/layout_info.html +++ b/modules/layout/tpl.admin/layout_info.html @@ -104,7 +104,7 @@