Index: arms/html/reqAdd/content-container.html =================================================================== diff -u -rb434399b8a8ac6de0f527aec13a7d84c58cdecfc -rf1ed5a64fbd25ba29fd3fc71625499b2c7b14bd5 --- arms/html/reqAdd/content-container.html (.../content-container.html) (revision b434399b8a8ac6de0f527aec13a7d84c58cdecfc) +++ arms/html/reqAdd/content-container.html (.../content-container.html) (revision f1ed5a64fbd25ba29fd3fc71625499b2c7b14bd5) @@ -79,13 +79,13 @@
@@ -217,11 +217,11 @@
- 지라 연결 + 문서로 보기 ( 어떻게 구현해야 할까? )
- 타임라인 여기서 쓸건가? + 리스트로 보기 ( 데이터 테이블 )
" + selectRel); + if(selectRel == "default"){ + $('#defaultTab').get(0).click(); + $('.widget-tabs ul li:nth-child(2)').hide(); + $('.widget-tabs ul li:nth-child(3)').hide(); + }else{ + $('.widget-tabs ul li:nth-child(2)').show(); + $('.widget-tabs ul li:nth-child(3)').show(); + } + + var tableName = "T_ARMS_REQADD_" + $('#country').val(); $.ajax({ url: "/auth-user/api/arms/reqAdd/" + tableName + "/getNode.do?c_id=" + selectId, @@ -96,6 +162,23 @@ console.log("always call"); }); + $('#fileIdLink').val(selectId); + //jstree click 시 file 컨트롤 + //파일 리스트 초기화 + $("table tbody.files").empty(); + // Load existing files: + var $fileupload = $('#fileupload'); + // Load existing files: + $.ajax({ + // Uncomment the following to send cross-domain cookies: + //xhrFields: {withCredentials: true}, + url: '/auth-user/api/arms/fileRepository/getFilesByNode.do', + data: { fileIdLink: selectId, c_title: tableName }, + dataType: 'json', + context: $fileupload[0] + }).done(function (result) { + $(this).fileupload('option', 'done').call(this, null, { result: result }); + }); } // --- select2 ( 제품(서비스) 검색 및 선택 ) 이벤트 --- //