|
|
|
@ -468,6 +468,17 @@ $(document).ready(function(){
|
|
|
|
|
$P.sameVehicleControl.sub.load(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.scrollEnd = (obj) => {
|
|
|
|
|
var el = $(obj);
|
|
|
|
|
if(el.scrollTop() == 0){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) == el.outerHeight()){
|
|
|
|
|
$P.scrollInspectionDataList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.scrollInspectionDataList = () => {
|
|
|
|
|
switch ($P.currentDisplay) {
|
|
|
|
|
case "photoInspection":
|
|
|
|
@ -581,22 +592,11 @@ $(document).ready(function(){
|
|
|
|
|
});
|
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchInspectionList()); //검색버튼
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//스크롤 이벤트 추가(사진검사)
|
|
|
|
|
$("#photoInspection-responsive--${pageName}").scroll(function(){
|
|
|
|
|
var el = $(this);
|
|
|
|
|
if(el.scrollTop() == 0){ return; }
|
|
|
|
|
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) == el.outerHeight()){
|
|
|
|
|
$P.scrollInspectionDataList();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
//스크롤 이벤트 추가(동일차량검사)
|
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").scroll(function(){
|
|
|
|
|
var el = $(this);
|
|
|
|
|
if(el.scrollTop() == 0){ return; }
|
|
|
|
|
if((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) == el.outerHeight()){
|
|
|
|
|
$P.scrollInspectionDataList();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$("#photoInspection-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
|
//스크롤 이벤트 추가(동일차량검사)
|
|
|
|
|
$("#sameVehicleInspectionMain-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 초기화
|
|
|
|
|