스크롤 이벤트 변경

main
이범준 12 months ago
parent b69ddbbf03
commit 6cb55ab585

@ -660,10 +660,9 @@ $(document).ready(function(){
return; return;
} }
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
obj.dataset.scrollStatus = "waiting"; obj.dataset.scrollStatus = "waiting";
$P.scrollInspectionDataList(); $P.scrollInspectionDataList();
}
} }
$P.scrollInspectionDataList = () => { $P.scrollInspectionDataList = () => {
@ -979,8 +978,8 @@ $(document).ready(function(){
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1")); $("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1"));
//스크롤 이벤트 추가(동일차량검사) //스크롤 이벤트 추가(동일차량검사)
$("#photoInspection-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); }); $("#photoInspection-responsive--${pageName}").on("scrollend", function(){ $P.scrollEnd(this); });
$("#sameVehicleInspectionMain-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); }); $("#sameVehicleInspectionMain-responsive--${pageName}").on("scrollend", function(){ $P.scrollEnd(this); });
$("#photoInspection_Table_0--${pageName}").find("th").resizable({handles : "e"}); $("#photoInspection_Table_0--${pageName}").find("th").resizable({handles : "e"});
$("#sameVehicleInspectionMain_Table_0--${pageName}").find("th").resizable({handles : "e"}); $("#sameVehicleInspectionMain_Table_0--${pageName}").find("th").resizable({handles : "e"});
$("#sameVehicleInspectionSub_Table_0--${pageName}").find("th").resizable({handles : "e"}); $("#sameVehicleInspectionSub_Table_0--${pageName}").find("th").resizable({handles : "e"});

@ -215,10 +215,9 @@ $(document).ready(function(){
return; return;
} }
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
obj.dataset.scrollStatus = "waiting"; obj.dataset.scrollStatus = "waiting";
$P.scrollCrdnList(); $P.scrollCrdnList();
}
} }
$P.scrollCrdnList = () => { $P.scrollCrdnList = () => {
@ -316,7 +315,7 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $('#btnReset--${pageName}').on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); $('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList());
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); }); $("#table-responsive--${pageName}").on("scrollend", function(){ $P.scrollEnd(this); });
$('#btnUpdateToConfirmData--${pageName}').on('click', () => { $('#btnUpdateToConfirmData--${pageName}').on('click', () => {
if(!$P.crdnControl.getCurrent()) { if(!$P.crdnControl.getCurrent()) {

@ -253,10 +253,9 @@ $(document).ready(function(){
return; return;
} }
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
obj.dataset.scrollStatus = "waiting"; obj.dataset.scrollStatus = "waiting";
$P.scrollCrdnList(); $P.scrollCrdnList();
}
} }
$P.scrollCrdnList = () => { $P.scrollCrdnList = () => {
@ -319,7 +318,7 @@ $(document).ready(function(){
$("#btnInsertByFile--${pageName}").on('click', () => { $P.crdnControl.newInfo("file"); }); $("#btnInsertByFile--${pageName}").on('click', () => { $P.crdnControl.newInfo("file"); });
$("#btnInsertByHand--${pageName}").on('click', () => { $P.crdnControl.newInfo("hand"); }); $("#btnInsertByHand--${pageName}").on('click', () => { $P.crdnControl.newInfo("hand"); });
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); }); $("#table-responsive--${pageName}").on("scrollend", function(){ $P.scrollEnd(this); });
$("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"}); $("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"});
/************************************************************************** /**************************************************************************

@ -393,11 +393,9 @@ $(document).ready(function(){
return; return;
} }
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
obj.dataset.scrollStatus = "waiting"; obj.dataset.scrollStatus = "waiting";
$P.scrollCrdnList(); $P.scrollCrdnList();
} }
}
$P.scrollCrdnList = () => { $P.scrollCrdnList = () => {
$P.crdnControl.load($P.crdnControl.query.pageNum + 1); $P.crdnControl.load($P.crdnControl.query.pageNum + 1);
@ -487,7 +485,8 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $('#btnReset--${pageName}').on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); $('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList());
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
$("#table-responsive--${pageName}").on("scrollend", function(){ $P.scrollEnd(this); });
/************************************************************************** /**************************************************************************
* 초기화 * 초기화

@ -310,10 +310,9 @@ $(document).ready(function(){
return; return;
} }
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
obj.dataset.scrollStatus = "waiting"; obj.dataset.scrollStatus = "waiting";
$P.scrollExmptnVhclList(); $P.scrollExmptnVhclList();
}
} }
$P.scrollExmptnVhclList = () => { $P.scrollExmptnVhclList = () => {
@ -460,7 +459,7 @@ $(document).ready(function(){
$("#btnOpenDelRsn--${pageName}").on('click', () => { $P.fnOpenDelRsnDialog(); }); $("#btnOpenDelRsn--${pageName}").on('click', () => { $P.fnOpenDelRsnDialog(); });
$("#btnHistory--${pageName}").on('click', () => { $P.fnOpenHistory(); }); $("#btnHistory--${pageName}").on('click', () => { $P.fnOpenHistory(); });
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); }); $("#table-responsive--${pageName}").on("scrollend", function(){ $P.scrollEnd(this); });
$("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"}); $("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"});
/************************************************************************** /**************************************************************************

@ -371,10 +371,9 @@ $(document).ready(function(){
return; return;
} }
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
obj.dataset.scrollStatus = "waiting"; obj.dataset.scrollStatus = "waiting";
$P.scrollCrdnList(); $P.scrollCrdnList();
}
} }
$P.scrollCrdnList = () => { $P.scrollCrdnList = () => {
@ -643,7 +642,7 @@ $(document).ready(function(){
$("#btnDeleteSameRcptYmd--${pageName}").on("click", () => $P.fnRemoveSameRcptYmd()); $("#btnDeleteSameRcptYmd--${pageName}").on("click", () => $P.fnRemoveSameRcptYmd());
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl()); $("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); }); $("#table-responsive--${pageName}").on("scrollend", function(){ $P.scrollEnd(this); });
$("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"}); $("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"});
/************************************************************************** /**************************************************************************

@ -397,10 +397,9 @@ $(document).ready(function(){
return; return;
} }
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
obj.dataset.scrollStatus = "waiting"; obj.dataset.scrollStatus = "waiting";
$P.scrollCrdnList(); $P.scrollCrdnList();
}
} }
$P.scrollCrdnList = () => { $P.scrollCrdnList = () => {
@ -672,7 +671,7 @@ $(document).ready(function(){
$("#btnExecuteAnswer--${pageName}").on("click", () => $P.fnExecuteAnswer()); $("#btnExecuteAnswer--${pageName}").on("click", () => $P.fnExecuteAnswer());
$("#btnAnswerComplete--${pageName}").on("click", () => $P.fnAnswerComplete()); $("#btnAnswerComplete--${pageName}").on("click", () => $P.fnAnswerComplete());
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); }); $("#table-responsive--${pageName}").on("scrollend", function(){ $P.scrollEnd(this); });
$("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"}); $("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"});
/************************************************************************** /**************************************************************************

@ -358,10 +358,9 @@ $(document).ready(function(){
return; return;
} }
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
obj.dataset.scrollStatus = "waiting"; obj.dataset.scrollStatus = "waiting";
$P.scrollCrdnList(); $P.scrollCrdnList();
}
} }
$P.scrollCrdnList = () => { $P.scrollCrdnList = () => {
@ -546,7 +545,7 @@ $(document).ready(function(){
$("#btnDelete--${pageName}").on("click", () => $P.fnRemove()); $("#btnDelete--${pageName}").on("click", () => $P.fnRemove());
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl()); $("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); }); $("#table-responsive--${pageName}").on("scrollend", function(){ $P.scrollEnd(this); });
$("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"}); $("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"});
/************************************************************************** /**************************************************************************

@ -307,10 +307,9 @@ $(document).ready(function(){
return; return;
} }
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
obj.dataset.scrollStatus = "waiting"; obj.dataset.scrollStatus = "waiting";
$P.scrollDmndList(); $P.scrollDmndList();
}
} }
$P.scrollDmndList = () => { $P.scrollDmndList = () => {
@ -461,7 +460,7 @@ $(document).ready(function(){
$("#btnDelete--${pageName}").on("click", () => $P.fnRemove(null)); $("#btnDelete--${pageName}").on("click", () => $P.fnRemove(null));
$("#btnDeleteAllCompleteData--${pageName}").on("click", () => $P.fnRemoveAllCompleteData()); $("#btnDeleteAllCompleteData--${pageName}").on("click", () => $P.fnRemoveAllCompleteData());
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); }); $("#table-responsive--${pageName}").on("scrollend", function(){ $P.scrollEnd(this); });
$("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"}); $("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"});
/************************************************************************** /**************************************************************************

@ -254,10 +254,9 @@ $(document).ready(function(){
return; return;
} }
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()){
obj.dataset.scrollStatus = "waiting"; obj.dataset.scrollStatus = "waiting";
$P.scrollRductList(); $P.scrollRductList();
}
} }
$P.scrollRductList = () => { $P.scrollRductList = () => {
@ -339,7 +338,7 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$('#btnReset--${pageName}').on('click', () => $P.fnReset()); $('#btnReset--${pageName}').on('click', () => $P.fnReset());
$('#btnSearch--${pageName}').on('click', () => $P.searchRductList()); $('#btnSearch--${pageName}').on('click', () => $P.searchRductList());
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); }); $("#table-responsive--${pageName}").on("scrollend", function(){ $P.scrollEnd(this); });
/************************************************************************** /**************************************************************************
* 초기화 * 초기화

Loading…
Cancel
Save