1 2 3 4 5 6 7 8 9 10 11 12 13 14
| function onTreeDragDrop(target, data) {
if (data.otherNode.data.type == node_type_template) {
createInstance(target.key, data.otherNode.key);
}
else {
var html = "Confirmez-vous le déplacement ?"
showDialogHtml(html,true,true,false,false,false,false) /* C'est mon popup */
moveNode(target.key, data.otherNode.key, 'Under', function (result) { /* C'est la fonction me permettrant de drop un noeud ailleurs */
if (result == true) {
data.otherNode.moveTo(target, data.hitMode);
}
});
}
} |
Partager