reload 추가

dev
이범준 4 months ago
parent 1d5fd00f62
commit e80db59cde

@ -241,8 +241,8 @@
* DatasetControl 이벤트
**************************************************************************/
// Dataset 변경 이벤트
$P.control.onDatasetChange = (obj) => {
$P.renderList(obj.${infoPrefix}Total);
$P.control.onDatasetChange = (obj, option) => {
$P.renderList(obj.${infoPrefix}Total, option);
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
list: $P.control.dataset
@ -355,7 +355,9 @@
, title : dialogTitle
, content : resp
, size : "xxl"
, onClose : () => { $P.fnRefreshList(); }
, onClose : () => {
$P.control.reload({all : true});
}
});
}
});
@ -400,7 +402,7 @@
* DataTables 이벤트
**************************************************************************/
// DataTables에 click, dbclick 이벤트
$P.renderList = (totalSize) => {
$P.renderList = (totalSize, option) => {
let ${infoPrefix}List = $P.control.dataset;
let empty = ${infoPrefix}List.empty;
@ -424,6 +426,10 @@
let noMore = (${infoPrefix}List.length >= totalSize);
let initScroll = ($P.control.query.pageNum < 2) && ($P.control.untilPageNum == 0);
if(option != null && option.reloaded){
initScroll = false;
}
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
if ($P.control.untilPageNum != 0) {

@ -249,8 +249,8 @@
* DatasetControl 이벤트
**************************************************************************/
// Dataset 변경 이벤트
$P.control.onDatasetChange = (obj) => {
$P.renderList(obj.${infoPrefix}Total);
$P.control.onDatasetChange = (obj, option) => {
$P.renderList(obj.${infoPrefix}Total, option);
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
list: $P.control.dataset
@ -341,7 +341,9 @@
, title : dialogTitle
, content : resp
, size : $P.control.infoSize
, onClose : () => { $P.fnSearchList(); }
, onClose : () => {
$P.control.reload({all : true});
}
});
}
});
@ -379,7 +381,7 @@
* DataTables 이벤트
**************************************************************************/
// DataTables에 click, dbclick 이벤트
$P.renderList = (totalSize) => {
$P.renderList = (totalSize, option) => {
let ${infoPrefix}List = $P.control.dataset;
let empty = ${infoPrefix}List.empty;
@ -402,6 +404,10 @@
let noMore = (${infoPrefix}List.length >= totalSize);
let initScroll = ($P.control.query.pageNum < 2) && ($P.control.untilPageNum == 0);
if(option != null && option.reloaded){
initScroll = false;
}
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
if ($P.control.untilPageNum != 0) {

@ -240,8 +240,8 @@
* DatasetControl 이벤트
**************************************************************************/
// Dataset 변경 이벤트
$P.control.onDatasetChange = (obj) => {
$P.renderList(obj.${infoPrefix}Total);
$P.control.onDatasetChange = (obj, option) => {
$P.renderList(obj.${infoPrefix}Total, option);
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
list: $P.control.dataset
@ -327,7 +327,9 @@
, title : dialogTitle
, content : resp
, size : $P.control.infoSize
, onClose : () => { $P.fnRefreshList(); }
, onClose : () => {
$P.control.reload({all : true});
}
});
}
});
@ -338,7 +340,7 @@
* DataTables 이벤트
**************************************************************************/
// DataTables에 click, dbclick 이벤트
$P.renderList = (totalSize) => {
$P.renderList = (totalSize, option) => {
let ${infoPrefix}List = $P.control.dataset;
let empty = ${infoPrefix}List.empty;
@ -362,6 +364,10 @@
let noMore = (${infoPrefix}List.length >= totalSize);
let initScroll = ($P.control.query.pageNum < 2) && ($P.control.untilPageNum == 0);
if(option != null && option.reloaded){
initScroll = false;
}
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
if ($P.control.untilPageNum != 0) {

Loading…
Cancel
Save