Index: arms/js/mapping.js =================================================================== diff -u -r652d16eccc7f5b9d00e79ac7b3ed02d5380708dc -r097849a67b00df97ff1859374f431b874b94f5cd --- arms/js/mapping.js (.../mapping.js) (revision 652d16eccc7f5b9d00e79ac7b3ed02d5380708dc) +++ arms/js/mapping.js (.../mapping.js) (revision 097849a67b00df97ff1859374f431b874b94f5cd) @@ -819,7 +819,7 @@ let radio_buttons = $(container_selector + " input[type='radio']"); radio_buttons.each(function () { - if (value && $(this).val() === value) { + if (value && $(this).val() == value) { $(this).parent().addClass("active"); $(this).prop("checked", true); } @@ -856,24 +856,8 @@ 200: function () { jSuccess('"' + state_name + '"' + " 상태가 생성되었습니다."); $("#close_modal_popup").trigger("click"); - // 선택된 서버가 있을 Mapping 화면 재로드 - if ($("#selected_alm_server").val()) { - let selected_alm_server_c_id = $("#selected_alm_server").val(); - let alm_server_data = alm_server_list[selected_alm_server_c_id]; - let alm_server_type = alm_server_data.c_jira_server_type; - if (alm_server_type === "클라우드") { - $("#cloud_project_tree").show(); - $("#select-project-div").show(); - $("#select-issuetype-div").show(); - build_alm_server_jstree(selected_alm_server_c_id); - let data = {}; - gojs.load(data); - } - else { - mapping_data_load(selected_alm_server_c_id, alm_server_type); - } - } + init_mapping_diagram(); } } }); @@ -898,6 +882,8 @@ .then((result) => { console.log(result); $("#close_modal_popup").trigger("click"); + + init_mapping_diagram(); }) .catch((error) => { // 오류가 발생한 경우 처리합니다. @@ -921,6 +907,8 @@ .then((result) => { console.log(result); $("#close_modal_popup").trigger("click"); + + init_mapping_diagram(); }) .catch((error) => { // 오류가 발생한 경우 처리합니다. @@ -929,6 +917,29 @@ }); } +function init_mapping_diagram() { + // 선택된 서버가 있을 Mapping 화면 재로드 + if ($("#selected_alm_server").val()) { + let selected_alm_server_c_id = $("#selected_alm_server").val(); + let alm_server_data = alm_server_list[selected_alm_server_c_id]; + let alm_server_type = alm_server_data.c_jira_server_type; + + if (alm_server_type === "클라우드") { + $("#select-project").text("선택되지 않음"); + $("#select-issuetype").text("선택되지 않음"); + $("#cloud_project_tree").show(); + $("#select-project-div").show(); + $("#select-issuetype-div").show(); + build_alm_server_jstree(selected_alm_server_c_id); + let data = {}; + gojs.load(data); + } + else { + mapping_data_load(selected_alm_server_c_id, alm_server_type); + } + } +} + function update_arms_state(state_c_id, state_category_mapping_id, state_name, state_contents) { return new Promise((resolve, reject) => { Index: arms/js/mapping/gojs_setup.js =================================================================== diff -u -r14b2d10718ab95952997d58ea2b043b932b95843 -r097849a67b00df97ff1859374f431b874b94f5cd --- arms/js/mapping/gojs_setup.js (.../gojs_setup.js) (revision 14b2d10718ab95952997d58ea2b043b932b95843) +++ arms/js/mapping/gojs_setup.js (.../gojs_setup.js) (revision 097849a67b00df97ff1859374f431b874b94f5cd) @@ -50,8 +50,15 @@ $(go.Node, { movable: false }, 'Spot', - { selectionAdorned: false, textEditable: true, locationObjectName: 'BODY' }, + { selectionAdorned: false, textEditable: false, locationObjectName: 'BODY' }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), + { + doubleClick: (e, node) => { + // 더블 클릭 시 실행할 메소드 호출 + console.log(node.data.c_id); + popup_modal('update_popup', node.data.c_id); + } + }, // the main body consists of a Rectangle surrounding the text $(go.Panel, 'Auto',