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,'');