|
@@ -77,26 +77,10 @@ let mobPageObj = {
|
77
|
77
|
});
|
78
|
78
|
if(mode === PAGE_MODE_LIST) {
|
79
|
79
|
$('#ITP_AJAX_MPOMNG06010_LIST_CONTAINER').show();
|
80
|
|
- this.moreView(true);
|
81
|
80
|
}
|
|
81
|
+ CommonObj.moreView('#ITP_LIST_MPOMNG06010_LIST_ITEM_AREA', mode === PAGE_MODE_LIST, mobContentObj.list.load);
|
82
|
82
|
this.viewMode = mode;
|
83
|
83
|
},
|
84
|
|
- moreView: function(isScroll) {
|
85
|
|
- var _this = this;
|
86
|
|
- if(isScroll) {
|
87
|
|
- $('#ITP_LIST_MPOMNG06010_LIST_ITEM_AREA').on('scroll', function () {
|
88
|
|
- if($(this).scrollTop() + $(this).innerHeight() + 1 >= $(this)[0].scrollHeight) {
|
89
|
|
- if(mobContentObj.list.totPage > mobContentObj.list.listPage) {
|
90
|
|
- if(!mobContentObj.list.isSearch) {
|
91
|
|
- mobContentObj.list.load();
|
92
|
|
- }
|
93
|
|
- }
|
94
|
|
- }
|
95
|
|
- });
|
96
|
|
- } else {
|
97
|
|
- $('#ITP_LIST_MPOMNG06010_LIST_AREA').off('scroll');
|
98
|
|
- }
|
99
|
|
- },
|
100
|
84
|
ready: function() {
|
101
|
85
|
mobContentObj.list.init();
|
102
|
86
|
}
|
|
@@ -104,10 +88,7 @@ let mobPageObj = {
|
104
|
88
|
|
105
|
89
|
let mobContentObj = {
|
106
|
90
|
list: {
|
107
|
|
- listSize: 10,
|
108
|
91
|
listPage: 0,
|
109
|
|
- totPage: 0,
|
110
|
|
- isSearch: false,
|
111
|
92
|
rows: [],
|
112
|
93
|
init: function() {
|
113
|
94
|
mobPageObj.switchScreen(PAGE_MODE_LIST);
|
|
@@ -118,7 +99,6 @@ let mobContentObj = {
|
118
|
99
|
itp_fn_form_clear_validate(null, formId);
|
119
|
100
|
if (itp_fn_form_event.isValid(formId)) {
|
120
|
101
|
this.listPage = 0;
|
121
|
|
- this.totPage = 0;
|
122
|
102
|
this.rows.length = 0;
|
123
|
103
|
$('#ITP_LIST_MPOMNG06010_LIST_ITEM_ROWS').empty();
|
124
|
104
|
this.load();
|