Index: vue/src/components/DevOps/contents/JSTFDownload.vue =================================================================== diff -u -r1201ac916133458768f173865df76c4c683906c4 -r3d5be60615f6363d5369ab7d77f35813f9f27da7 --- vue/src/components/DevOps/contents/JSTFDownload.vue (.../JSTFDownload.vue) (revision 1201ac916133458768f173865df76c4c683906c4) +++ vue/src/components/DevOps/contents/JSTFDownload.vue (.../JSTFDownload.vue) (revision 3d5be60615f6363d5369ab7d77f35813f9f27da7) @@ -61,10 +61,10 @@
-
@@ -84,17 +84,17 @@
- - + +
- - + +
Index: vue/dist/943.0d4a5fdf.js =================================================================== diff -u -r69fe57ca5defa495d913766c6824be673e88f7ef -r3d5be60615f6363d5369ab7d77f35813f9f27da7 --- vue/dist/943.0d4a5fdf.js (.../943.0d4a5fdf.js) (revision 69fe57ca5defa495d913766c6824be673e88f7ef) +++ vue/dist/943.0d4a5fdf.js (.../943.0d4a5fdf.js) (revision 3d5be60615f6363d5369ab7d77f35813f9f27da7) @@ -8,6 +8,7 @@ ? registNewServie("pdservice", "#demo") : updateServie("pdservice", "#demo"); }); + }); // --- 에디터 설정 --- // @@ -24,8 +25,32 @@ function jsTreeClick(selectedNode) { console.log(selectedNode); + var getSelectedText = selectedNode.find("a.jstree-clicked").text().trimStart(); + console.log(getSelectedText); + $("#prepended-input").val(getSelectedText); + + checkEqualSelectedNode(selectedNode); } + +function checkEqualSelectedNode(selectedNode){ + var getSelectedText = selectedNode.find("a.jstree-clicked").text().trimStart(); + var inputText = $("#prepended-input").val(); + if(getSelectedText == inputText){ + console.log("동일하다 선택된 값이다."); + $('.updatemode').click(); + }else{ + console.log("값이 틀리다."); + $('.newmode').click(); + } +} + +$('.newmode').click(function(){ + $('#prepended-input').val(''); + $('#owner_select2').val(null).trigger('change'); + $('#reviewer_select2').val(null).trigger('change'); +}); + // --- select2 설정 --- // $(".js-example-basic-multiple-limit").select2({ maximumSelectionLength: 2,