Index: arms/js/reqAdd.js =================================================================== diff -u -r91b2dbd3b59026e3f82a4bfdad2259a2ba6bc70b -r045a44c1ae893706c3429cbd8ac3b05acfc5aa70 --- arms/js/reqAdd.js (.../reqAdd.js) (revision 91b2dbd3b59026e3f82a4bfdad2259a2ba6bc70b) +++ arms/js/reqAdd.js (.../reqAdd.js) (revision 045a44c1ae893706c3429cbd8ac3b05acfc5aa70) @@ -479,6 +479,35 @@ .always(function () {}); }else{ console.log("folder clicked"); + var columnList = [ + { data: "c_id", defaultContent: "-" }, + { data: "c_left", defaultContent: "-" }, + { data: "c_title", defaultContent: "-" } + ]; + var rowsGroupList = []; + var columnDefList = []; + var selectList = {}; + var orderList = []; + var buttonList = []; + + var jquerySelector = "#req_table"; + var ajaxUrl = "/auth-user/api/arms/reqAdd/" + tableName + "/getChildNodeWithParent.do?c_id="+selectId; + var jsonRoot = ""; + var isServerSide = false; + + dataTableRef = dataTable_build( + jquerySelector, + ajaxUrl, + jsonRoot, + columnList, + rowsGroupList, + columnDefList, + selectList, + orderList, + buttonList, + isServerSide + ); + } } @@ -717,6 +746,7 @@ // 데이터 테이블 데이터 렌더링 이후 콜백 함수. function dataTableCallBack(settings, json) { + console.log("데이터테이블콜백") setDocViewTab(); //상세보기 탭 셋팅 //setDetailAndEditViewTab();