Index: standard/project/web/src/main/webapp/WEB-INF/jsp/egovframework/com/ext/jstree/springDWRVersion.jsp =================================================================== diff -u -r4b150fa0b8019e578b6224626fdaf742e8abd478 -r32e1c0a7c69345dca8aaeadbc40ea81aae0ee36d --- standard/project/web/src/main/webapp/WEB-INF/jsp/egovframework/com/ext/jstree/springDWRVersion.jsp (.../springDWRVersion.jsp) (revision 4b150fa0b8019e578b6224626fdaf742e8abd478) +++ standard/project/web/src/main/webapp/WEB-INF/jsp/egovframework/com/ext/jstree/springDWRVersion.jsp (.../springDWRVersion.jsp) (revision 32e1c0a7c69345dca8aaeadbc40ea81aae0ee36d) @@ -399,6 +399,13 @@ $(function() { jstreeDataTableReload(); + + function rollDice() { + return (Math.floor(Math.random() * 1000000) + 1); + } + Chat.login(rollDice(), function(data) { + console.log(data); + }); }); function jsTreeClick(selectedNodeID) { Index: standard/project/web/src/main/webapp/WEB-INF/tags/jstree.tag =================================================================== diff -u -r719cc312c906a7f758f977c425a7983e27d7a746 -r32e1c0a7c69345dca8aaeadbc40ea81aae0ee36d --- standard/project/web/src/main/webapp/WEB-INF/tags/jstree.tag (.../jstree.tag) (revision 719cc312c906a7f758f977c425a7983e27d7a746) +++ standard/project/web/src/main/webapp/WEB-INF/tags/jstree.tag (.../jstree.tag) (revision 32e1c0a7c69345dca8aaeadbc40ea81aae0ee36d) @@ -249,6 +249,11 @@ } else { $.jstree.rollback(data.rlbk); } + if(Chat){ + Chat.sendMessage("노드를 추가했습니다. 추가된 노드의 아이디는 " + r.id , function(data) { + console.log(data); + }); + } jstreeDataTableReload(); jsTreeBuild(); }); @@ -263,6 +268,11 @@ }, success: function(r) { jNotify('Notification : Remove Node, Complete !'); + if(Chat){ + Chat.sendMessage("노드를 삭제했습니다. 삭제된 노드의 아이디는 " + r.c_id , function(data) { + console.log(data); + }); + } jstreeDataTableReload(); jsTreeBuild(); } @@ -278,6 +288,11 @@ $.jstree.rollback(data.rlbk); } jSuccess('Rename Node Complete'); + if(Chat){ + Chat.sendMessage("노드를 변경했습니다. 변경된 노드의 아이디는 " + r.c_id , function(data) { + console.log(data); + }); + } jstreeDataTableReload(); jsTreeBuild(); }); @@ -288,6 +303,11 @@ "c_type": data.rslt.obj.attr("rel") }, function(r) { jSuccess('Node Type Change'); + if(Chat){ + Chat.sendMessage("노드를 변경했습니다. 변경된 노드의 아이디는 " + r.c_id , function(data) { + console.log(data); + }); + } jstreeDataTableReload(); jsTreeBuild(); }); @@ -313,8 +333,13 @@ if (data.rslt.cy && $(data.rslt.oc).children("UL").length) { data.inst.refresh(data.inst._get_parent(data.rslt.oc)); } - jNotify('Notification : Move Node Complete !'); } + jNotify('Notification : Move Node Complete !'); + if(Chat){ + Chat.sendMessage("노드가 이동되었습니다. 이동된 노드의 아이디는 " + r.c_id , function(data) { + console.log(data); + }); + } jstreeDataTableReload(); jsTreeBuild(); }