From 6b48c8d447be6c21f40853abf06eae69951ba004 Mon Sep 17 00:00:00 2001 From: ngleader Date: Mon, 22 Dec 2008 04:52:17 +0000 Subject: [PATCH] =?UTF-8?q?#17567402=20tree=20lib=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EB=85=B8=EB=93=9C=EB=A5=BC=20drag=20=ED=95=B4=EC=84=9C=20?= =?UTF-8?q?=EC=9B=90=EB=9E=98=20=EC=9C=84=EC=B9=98=EB=A1=9C=20=EB=8B=A4?= =?UTF-8?q?=EC=8B=9C=20drop=20=ED=96=88=EC=9D=84=EB=95=8C=EC=9D=98=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5149 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/board/tpl/js/board_admin.js | 4 ++++ modules/homepage/skins/xe_official/js/homepage.js | 5 ++++- modules/menu/tpl/js/menu_tree.js | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/board/tpl/js/board_admin.js b/modules/board/tpl/js/board_admin.js index 084435333..80e45da0c 100644 --- a/modules/board/tpl/js/board_admin.js +++ b/modules/board/tpl/js/board_admin.js @@ -77,6 +77,10 @@ function Tree(url){ //alert("text-"+jQuery('span:first',node).text()); }, afterMove:function(destination, source, pos){ + if(destination.size() == 0){ + Tree(xml_url); + return; + } var module_srl = jQuery("#fo_category input[name=module_srl]").val(); var parent_srl = destination.attr('id').replace(/.*_/g,''); var source_srl = source.attr('id').replace(/.*_/g,''); diff --git a/modules/homepage/skins/xe_official/js/homepage.js b/modules/homepage/skins/xe_official/js/homepage.js index 7c1312146..c831a2eeb 100644 --- a/modules/homepage/skins/xe_official/js/homepage.js +++ b/modules/homepage/skins/xe_official/js/homepage.js @@ -68,7 +68,10 @@ function homepageLoadMenuInfo(url){ }, afterMove:function(destination, source, pos){ jQuery('#menuItem').css("visibility",'hidden'); - + if(destination.size() == 0){ + homepageLoadMenuInfo(xml_url); + return; + } var menu_srl = jQuery("#fo_menu input[name=menu_srl]").val(); var parent_srl = destination.attr('id').replace(/.*_/g,''); var target_srl = source.attr('id').replace(/.*_/g,''); diff --git a/modules/menu/tpl/js/menu_tree.js b/modules/menu/tpl/js/menu_tree.js index 0ee8aab2a..de8ace729 100644 --- a/modules/menu/tpl/js/menu_tree.js +++ b/modules/menu/tpl/js/menu_tree.js @@ -61,6 +61,11 @@ function Tree(url){ afterMove:function(destination, source, pos){ jQuery("#menu_zone_info").html(""); + + if(destination.size() == 0){ + Tree(xml_url); + return; + } var menu_srl = jQuery("#fo_menu input[name=menu_srl]").val(); var parent_srl = destination.attr('id').replace(/.*_/g,''); var target_srl = source.attr('id').replace(/.*_/g,'');