EasyUITree設定節點選中
阿新 • • 發佈:2018-12-13
function callback1(){ reloadMind(); LoadTree0($("#tt1"),"137103"); setTimeout(function(){ var node = $('#tt1').tree('find', selectedTreeId); var pNode=$("#tt1").tree("getParent", node.target); $("#tt1").tree("expand", pNode.target); $('#tt1').tree('select', node.target); init(); },1000); } function init(){ $("#container jmnode").unbind("dbclick"); $("#container jmnode").dblclick(function () { var url = jm1.get_selected_node().data.url; selectedTreeId=$("#tt1").tree('getSelected').id url+="&callback=callback1" var title = jm1.get_selected_node().topic; PW.getWindow(url, title + "維護", 900, 600); }) }