Skip to content

Commit fbd086e

Browse files
committed
Change the isLoaded attribute after the table has been filled.
1 parent 81c71ca commit fbd086e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/webapp/js/table.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ jQuery3(document).ready(function () {
8181
*/
8282
function loadTableData(table, dataTable) {
8383
if (!table[0].hasAttribute('isLoaded')) {
84-
table.attr('isLoaded', 'true');
84+
table.attr('isLoaded', 'false');
8585
tableDataProxy.getTableRows(table.attr('id'), function (t) {
8686
(function () {
8787
const model = JSON.parse(t.responseObject());
8888
dataTable.rows.add(model).draw();
89+
table.attr('isLoaded', 'true');
8990
})();
9091
});
9192
}

0 commit comments

Comments
 (0)