tree lib에서 노드를 drag 해서 원래 위치로 다시 drop 했을때의 오류 해결

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5149 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2008-12-22 04:52:17 +00:00
parent 6b755609f5
commit 6b48c8d447
3 changed files with 13 additions and 1 deletions

View file

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

View file

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

View file

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