f(title!=null){
title.setAttribute("value",this.text);
}
data.save();
}
data.dispose();
}else{
document.title = "Error:没有找到接点" + _o.key;
}
o_xml.dispose();
this.select();
}
}
/*
* 接点拖动事件
*/
Node.prototype.onDrag = function(from,to){
var _f = from.path+"";
var _t = to.path+"";
if(_f.length<_t.length&&_t.substring(0,_f.length)==_f){
g_prompt.show("不能移动到子接点");
return;
}
//处理树
to.moveToChild(from);
/*
*开始移动接点
*/
var o_xml = new CLASS_XML("xml/data.xml");
//处理XML
var o_f = o_xml.selectSingleNode("//*[@id=" + from.key + "]");
var o_t = o_xml.selectSingleNode("//*[@id=" + to.key + "]");
o_t.appendChild(o_f);
o_xml.save();
&nbs