|
|
@ -632,6 +632,13 @@ $.fn.setPaging = function(config) {
|
|
|
|
config.last = function(index, label) {return '<li onclick="{func}" class="page-item last"><a class="page-link"><i class="tf-icon bx bx-chevrons-right"></i></a></li>'.replace(/{func}/, config.func.replace(/{index}/, label));};
|
|
|
|
config.last = function(index, label) {return '<li onclick="{func}" class="page-item last"><a class="page-link"><i class="tf-icon bx bx-chevrons-right"></i></a></li>'.replace(/{func}/, config.func.replace(/{index}/, label));};
|
|
|
|
|
|
|
|
|
|
|
|
return this.each(function(){
|
|
|
|
return this.each(function(){
|
|
|
|
|
|
|
|
let list = config.list;
|
|
|
|
|
|
|
|
let pagingInfo = list.empty ? "" : 1
|
|
|
|
|
|
|
|
+ " ~ "
|
|
|
|
|
|
|
|
+ numberFormat.format(list.length)
|
|
|
|
|
|
|
|
+ " / " + numberFormat.format(config.totalSize);
|
|
|
|
|
|
|
|
$("#"+ config.prefix + "PagingInfo").html(pagingInfo);
|
|
|
|
|
|
|
|
|
|
|
|
let tag = paginate(config),
|
|
|
|
let tag = paginate(config),
|
|
|
|
container = $(this);
|
|
|
|
container = $(this);
|
|
|
|
if (tag)
|
|
|
|
if (tag)
|
|
|
@ -640,12 +647,16 @@ $.fn.setPaging = function(config) {
|
|
|
|
if (config.hideIfEmpty != false)
|
|
|
|
if (config.hideIfEmpty != false)
|
|
|
|
container.hide();
|
|
|
|
container.hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.fn.setPagingInfo = function(config) {
|
|
|
|
|
|
|
|
return this.each(function(){
|
|
|
|
let list = config.list;
|
|
|
|
let list = config.list;
|
|
|
|
let pagingInfo = list.empty ? "" :
|
|
|
|
let pagingInfo = list.empty ? "" : 1
|
|
|
|
numberFormat.format(config.start + 1)
|
|
|
|
|
|
|
|
+ " ~ "
|
|
|
|
+ " ~ "
|
|
|
|
+ numberFormat.format(config.start + list.length)
|
|
|
|
+ numberFormat.format(list.length)
|
|
|
|
+ " / " + numberFormat.format(config.totalSize);
|
|
|
|
+ " / " + numberFormat.format(config.totalSize);
|
|
|
|
$("#"+ config.prefix + "PagingInfo").html(pagingInfo);
|
|
|
|
$("#"+ config.prefix + "PagingInfo").html(pagingInfo);
|
|
|
|
});
|
|
|
|
});
|
|
|
|