Authored by FengRuwei

add 添加服务对象回调方法

... ... @@ -126,7 +126,6 @@
}
return strPath;
}
var openTree = function (node_id, level) {
... ... @@ -186,6 +185,15 @@
return rel;
};
var addMObjType=function(nodeid,name){
var id=nodeId2id(nodeid);
var path=getPath(nodeid);
console.log("id: "+id +" path: "+path +" name :"+name);
}
var doAddType = function () {
var pid = $('#tx_type_id').val();
var name = $('#tx_new_type_name').val();
... ... @@ -217,6 +225,11 @@
}
);
}
$("#btn4type").click(function () {
console.log("frw");
if ($("#tx_type_action").val() == "add") {
... ... @@ -297,8 +310,8 @@
"action": function (obj) {
var inst = jQuery.jstree.reference(obj.reference);
var clickedNode = inst.get_node(obj.reference);
console.log(obj);
addMObjType(clickedNode);
console.log("add minfo--clickedNode's id is : " + clickedNode.id);
addMObjType(clickedNode.id,clickedNode.text);
}
}
}
... ... @@ -362,4 +375,4 @@
</div>
</div>
</div>
</div>
\ No newline at end of file
</div>
... ...