소스정리(html엘리먼트 id제거 및 name추가)

main
이범준 3 months ago
parent 1ed0e8ad67
commit 774360e629

@ -60,7 +60,7 @@
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-600"> <div name="table-responsive" class="table-responsive ox-scroll oy-scroll h-px-600">
<table id="DataTables_Table_0--${pageName}" <table id="DataTables_Table_0--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer" > class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer" >
<thead class="sticky-thead"> <thead class="sticky-thead">
@ -281,7 +281,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore); $P.find("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -368,8 +368,8 @@ $(document).ready(function(){
$("#term--${pageName}").onEnterPress($P.searchCrdnList); $("#term--${pageName}").onEnterPress($P.searchCrdnList);
$P.$find("btnExcel").on('click', () => $P.fnExcelDown()); $P.$find("btnExcel").on('click', () => $P.fnExcelDown());
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("table-responsive"));
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList); fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList);
$P.$find("btnUpdateToConfirmData").on('click', () => $P.save()); $P.$find("btnUpdateToConfirmData").on('click', () => $P.save());

@ -57,8 +57,7 @@
</div> </div>
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" <div name="table-responsive" class="table-responsive ox-scroll oy-scroll h-px-600">
class="table-responsive ox-scroll oy-scroll h-px-600">
<table id="DataTables_Table_0--${pageName}" <table id="DataTables_Table_0--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead"> <thead class="sticky-thead">
@ -227,7 +226,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore); $P.find("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -281,8 +280,8 @@ $(document).ready(function(){
$P.$find("btnInsertByFile").on('click', () => { $P.newInfo("file"); }); $P.$find("btnInsertByFile").on('click', () => { $P.newInfo("file"); });
$P.$find("btnInsertByHand").on('click', () => { $P.newInfo("hand"); }); $P.$find("btnInsertByHand").on('click', () => { $P.newInfo("hand"); });
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("table-responsive"));
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList); fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList);
/************************************************************************** /**************************************************************************
* 초기화 * 초기화

@ -59,7 +59,7 @@
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" <div id="DataTables_Table_0_wrapper--${pageName}"
class="dataTables_wrapper dt-bootstrap5 no-footer"> class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-550"> <div name="table-responsive" class="table-responsive ox-scroll oy-scroll h-px-550">
<span> <span>
<table <table
class="datatables-ajax table table-bordered dataTable no-footer"> class="datatables-ajax table table-bordered dataTable no-footer">
@ -204,7 +204,7 @@ $(document).ready(function(){
if(dataItem && dataItem.data){ if(dataItem && dataItem.data){
var dataKey = dataItem.data.FILE_NAME; var dataKey = dataItem.data.FILE_NAME;
$("#table-responsive--${pageName}").find("tbody").setCurrentRow(dataKey); $P.$find("table-responsive").find("tbody").setCurrentRow(dataKey);
if(dataItem.data.FILE_GROUP_TYPE == "BIN"){ if(dataItem.data.FILE_GROUP_TYPE == "BIN"){
var srcArr = []; var srcArr = [];
@ -310,8 +310,8 @@ $(document).ready(function(){
} }
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$("#table-responsive--${pageName}").find("template.notFound")[0].innerHTML]; var notFound = [$P.$find("table-responsive").find("template.notFound")[0].innerHTML];
var found = $("#table-responsive--${pageName}").find("template.found")[0].innerHTML; var found = $P.$find("table-responsive").find("template.found")[0].innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickParsedInfoList('" + dataItem.getValue("FILE_NAME") + "');"); .replace(/{onclick}/gi, "pageObject['${pageName}'].clickParsedInfoList('" + dataItem.getValue("FILE_NAME") + "');");
@ -324,10 +324,10 @@ $(document).ready(function(){
//테이블 렌더링 //테이블 렌더링
$P.renderParsedInfoList = (total, listLength, trs) => { $P.renderParsedInfoList = (total, listLength, trs) => {
$("#table-responsive--${pageName}").find("tbody").html(trs); $P.$find("table-responsive").find("tbody").html(trs);
if(listLength != 0){ if(listLength != 0){
fnDownsizeCheck($("#table-responsive--${pageName}").find("table")[0]); fnDownsizeCheck($P.$find("table-responsive").find("table")[0]);
} }
} }
@ -452,7 +452,7 @@ $(document).ready(function(){
$P.removeTableRow = (removedFileName) => { $P.removeTableRow = (removedFileName) => {
var fileListTable = $("#table-responsive--${pageName}").find("table")[0]; var fileListTable = $P.$find("table-responsive").find("table")[0];
var targetArr = []; var targetArr = [];
if(Array.isArray(removedFileName)){ if(Array.isArray(removedFileName)){

@ -74,7 +74,7 @@
<!-- 상세 검색조건 버튼 --> <!-- 상세 검색조건 버튼 -->
<span class="flr"> <span class="flr">
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" <button type="button" class="btn btn-open-detail" data-bs-toggle="collapse"
data-bs-target="#searchDetail--${pageName}"> data-bs-target="[data-doctx='${pageName}'] [name='searchDetail']">
<i class="bx bx-chevron-down"></i> <i class="bx bx-chevron-down"></i>
상세검색 상세검색
</button> </button>
@ -82,7 +82,7 @@
</div> </div>
</div> </div>
</div> </div>
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse"> <div name="searchDetail" class="container-search container-search-detail collapse">
<div class="row"> <div class="row">
<div slot="search" class="col-6 if-empty-col0"> <div slot="search" class="col-6 if-empty-col0">
<template class="pvs dpv eca"> <template class="pvs dpv eca">
@ -178,7 +178,8 @@
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-500"> <div name="table-responsive"
class="table-responsive ox-scroll oy-scroll h-px-500">
<table id="DataTables_Table_0--${pageName}" <table id="DataTables_Table_0--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead"> <thead class="sticky-thead">
@ -385,7 +386,7 @@ $(document).ready(function(){
cols.each(function(){ cols.each(function(){
colsStr += this.outerHTML; colsStr += this.outerHTML;
}); });
$("#table-responsive--${pageName}")[0].changeColumn(colsStr); $P.find("table-responsive").changeColumn(colsStr);
if(SYS_LINK_INFO = null || SYS_LINK_INFO.NXRP_LINK_YN != 'Y'){ if(SYS_LINK_INFO = null || SYS_LINK_INFO.NXRP_LINK_YN != 'Y'){
$P.$find("btnSendCrdn").attr("hidden","hidden"); $P.$find("btnSendCrdn").attr("hidden","hidden");
@ -476,7 +477,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore); $P.find("table-responsive").changeContent(trs, initScroll, noMore);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드 fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
@ -589,8 +590,8 @@ $(document).ready(function(){
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$("#term--${pageName}").onEnterPress($P.searchCrdnList); $("#term--${pageName}").onEnterPress($P.searchCrdnList);
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("table-responsive"));
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList); fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList);
/************************************************************************** /**************************************************************************
* 초기화 * 초기화

@ -60,7 +60,7 @@
</div> </div>
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-600"> <div class="table-responsive ox-scroll oy-scroll h-px-600">
<table id="DataTables_Table_0--${pageName}" <table id="DataTables_Table_0--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead"> <thead class="sticky-thead">
@ -261,7 +261,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore); $P.find("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -431,8 +431,8 @@ $(document).ready(function(){
$P.$find("btnOpenDelRsn").on('click', () => { $P.fnOpenDelRsnDialog(); }); $P.$find("btnOpenDelRsn").on('click', () => { $P.fnOpenDelRsnDialog(); });
$P.$find("btnHistory").on('click', () => { $P.fnOpenHistory(); }); $P.$find("btnHistory").on('click', () => { $P.fnOpenHistory(); });
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollExmptnVhclList); fnMakeScrollableTable($P.find("table-responsive"), $P.scrollExmptnVhclList);
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("table-responsive"));
/************************************************************************** /**************************************************************************
* 초기화 * 초기화

@ -5,7 +5,8 @@
<div class="card" data-doctx="${pageName}"> <div class="card" data-doctx="${pageName}">
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-550"> <div name="table-responsive"
class="table-responsive ox-scroll oy-scroll h-px-550">
<table id="DataTables_Table_0--${pageName}" <table id="DataTables_Table_0--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead class="sticky-thead"> <thead class="sticky-thead">

@ -79,7 +79,7 @@
<!-- 상세 검색조건 버튼 --> <!-- 상세 검색조건 버튼 -->
<span class="flr"> <span class="flr">
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" <button type="button" class="btn btn-open-detail" data-bs-toggle="collapse"
data-bs-target="#searchDetail--${pageName}"> data-bs-target="[data-doctx='${pageName}'] [name='searchDetail']">
<i class="bx bx-chevron-down"></i> <i class="bx bx-chevron-down"></i>
상세검색 상세검색
</button> </button>
@ -87,7 +87,7 @@
</div> </div>
</div> </div>
</div> </div>
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse"> <div name="searchDetail" class="container-search container-search-detail collapse">
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">
<select class="form-select w-px-120 text-center" id="schRegDateOpt--${pageName}" name="schRegDateOpt"> <select class="form-select w-px-120 text-center" id="schRegDateOpt--${pageName}" name="schRegDateOpt">
@ -130,7 +130,8 @@
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-500"> <div id="table-responsive--${pageName}" name="table-responsive"
class="table-responsive ox-scroll oy-scroll h-px-500">
<table id="DataTables_Table_0--${pageName}" <table id="DataTables_Table_0--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead id="crdnThead--${pageName}" class="sticky-thead"> <thead id="crdnThead--${pageName}" class="sticky-thead">
@ -424,7 +425,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore); $P.find("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -687,8 +688,8 @@ $(document).ready(function(){
$P.$find("btnDeleteSameRcptYmd").on("click", () => $P.fnRemoveSameRcptYmd()); $P.$find("btnDeleteSameRcptYmd").on("click", () => $P.fnRemoveSameRcptYmd());
$P.$find("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl()); $P.$find("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl());
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("table-responsive"));
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList); fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList);
/************************************************************************** /**************************************************************************

@ -86,7 +86,7 @@
<!-- 상세 검색조건 버튼 --> <!-- 상세 검색조건 버튼 -->
<span class="flr"> <span class="flr">
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" <button type="button" class="btn btn-open-detail" data-bs-toggle="collapse"
data-bs-target="#searchDetail--${pageName}"> data-bs-target="[data-doctx='${pageName}'] [name='searchDetail']">
<i class="bx bx-chevron-down"></i> <i class="bx bx-chevron-down"></i>
상세검색 상세검색
</button> </button>
@ -94,7 +94,7 @@
</div> </div>
</div> </div>
</div> </div>
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse"> <div name="searchDetail" class="container-search container-search-detail collapse">
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">
<select class="form-select w-px-120 text-center" id="schRegDateOpt--${pageName}" name="schRegDateOpt"> <select class="form-select w-px-120 text-center" id="schRegDateOpt--${pageName}" name="schRegDateOpt">
@ -149,7 +149,8 @@
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-500"> <div name="table-responsive"
class="table-responsive ox-scroll oy-scroll h-px-500">
<table id="DataTables_Table_0--${pageName}" <table id="DataTables_Table_0--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead id="crdnThead--${pageName}" class="sticky-thead"> <thead id="crdnThead--${pageName}" class="sticky-thead">
@ -389,7 +390,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore); $P.find("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -685,8 +686,8 @@ $(document).ready(function(){
$P.$find("btnExecuteAnswer").on("click", () => $P.fnExecuteAnswer()); $P.$find("btnExecuteAnswer").on("click", () => $P.fnExecuteAnswer());
$P.$find("btnAnswerComplete").on("click", () => $P.fnAnswerComplete()); $P.$find("btnAnswerComplete").on("click", () => $P.fnAnswerComplete());
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("table-responsive"));
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList); fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList);
/************************************************************************** /**************************************************************************
* 초기화 * 초기화

@ -79,7 +79,7 @@
<!-- 상세 검색조건 버튼 --> <!-- 상세 검색조건 버튼 -->
<span class="flr"> <span class="flr">
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" <button type="button" class="btn btn-open-detail" data-bs-toggle="collapse"
data-bs-target="#searchDetail--${pageName}"> data-bs-target="[data-doctx='${pageName}'] [name='searchDetail']">
<i class="bx bx-chevron-down"></i> <i class="bx bx-chevron-down"></i>
상세검색 상세검색
</button> </button>
@ -87,7 +87,7 @@
</div> </div>
</div> </div>
</div> </div>
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse"> <div name="searchDetail" class="container-search container-search-detail collapse">
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">
<select class="form-select w-px-120 text-center" id="schRegDateOpt--${pageName}" name="schRegDateOpt"> <select class="form-select w-px-120 text-center" id="schRegDateOpt--${pageName}" name="schRegDateOpt">
@ -127,7 +127,8 @@
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-500"> <div id="table-responsive--${pageName}" name="table-responsive"
class="table-responsive ox-scroll oy-scroll h-px-500">
<table id="DataTables_Table_0--${pageName}" <table id="DataTables_Table_0--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead id="crdnThead--${pageName}" class="sticky-thead"> <thead id="crdnThead--${pageName}" class="sticky-thead">
@ -392,7 +393,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore); $P.find("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -555,8 +556,8 @@ $(document).ready(function(){
$P.$find("btnDelete").on("click", () => $P.fnRemove()); $P.$find("btnDelete").on("click", () => $P.fnRemove());
$P.$find("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl()); $P.$find("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl());
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("table-responsive"));
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList); fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList);
/************************************************************************** /**************************************************************************
* 초기화 * 초기화

@ -71,7 +71,8 @@
<div class="card-datatable text-nowrap"> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="table-responsive--${pageName}" class="table-responsive ox-scroll oy-scroll h-px-600"> <div name="table-responsive"
class="table-responsive ox-scroll oy-scroll h-px-600">
<table id="DataTables_Table_0--${pageName}" <table id="DataTables_Table_0--${pageName}"
class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer"> class="table-layout-fixed datatables-ajax table table-bordered dataTable no-footer">
<thead id="dmndThead--${pageName}" class="sticky-thead"> <thead id="dmndThead--${pageName}" class="sticky-thead">
@ -304,7 +305,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore); $P.find("table-responsive").changeContent(trs, initScroll, noMore);
} }
$P.clickDmndList = (dataKey) => { $P.clickDmndList = (dataKey) => {
@ -445,8 +446,8 @@ $(document).ready(function(){
$P.$find("btnDelete").on("click", () => $P.fnRemove(null)); $P.$find("btnDelete").on("click", () => $P.fnRemove(null));
$P.$find("btnDeleteAllCompleteData").on("click", () => $P.fnRemoveAllCompleteData()); $P.$find("btnDeleteAllCompleteData").on("click", () => $P.fnRemoveAllCompleteData());
fnMakeResizableTable($("#table-responsive--${pageName}")[0]); fnMakeResizableTable($P.find("table-responsive"));
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDmndList); fnMakeScrollableTable($P.find("table-responsive"), $P.scrollDmndList);
/************************************************************************** /**************************************************************************
* 초기화 * 초기화

Loading…
Cancel
Save