|
|
|
|
@ -157,8 +157,7 @@
|
|
|
|
|
|
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5">
|
|
|
|
|
<div name="table-responsive"
|
|
|
|
|
class="table-responsive h-px-500">
|
|
|
|
|
<div name="table-responsive" class="table-responsive h-px-500">
|
|
|
|
|
<table name="crdnTable" class="table-layout-fixed table table-bordered dataTable">
|
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
|
<tr name="crdnThead" data-search-target="[data-doctx='${pageName}']">
|
|
|
|
|
@ -305,7 +304,8 @@ $(document).ready(function(){
|
|
|
|
|
ctrl.dataset.onSort = sorter => {
|
|
|
|
|
let t = $P.getGridTemplate(),
|
|
|
|
|
trs = Apply.fromDataset.getTbody(ctrl.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
|
$P.renderCrdnList(ctrl.dataset.totalSize, ctrl.dataset.length, trs);
|
|
|
|
|
if (sorter.by)
|
|
|
|
|
$P.renderCrdnList(ctrl.dataset.totalSize, ctrl.dataset.length, trs);
|
|
|
|
|
|
|
|
|
|
document.querySelectorAll("div[data-doctx='${pageName}'] table[name='crdnTable'] th[data-sort]").forEach(th => {
|
|
|
|
|
th.classList.remove(
|
|
|
|
|
@ -501,9 +501,10 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.renderCrdnList = (total, listLength, trs, option) => {
|
|
|
|
|
debug("renderCrdnList");
|
|
|
|
|
let noMore = (listLength >= total);
|
|
|
|
|
let initScroll = (ctrl.query.pageNum < 2);
|
|
|
|
|
if (option != null && option.reloaded){
|
|
|
|
|
if (option && option.reloaded){
|
|
|
|
|
initScroll = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|