Skip to content

Commit a4494a3

Browse files
authored
Merge pull request #220 from jenkinsci/is-loaded-attribute
Fix `isLoaded` attribute of tables
2 parents 7607f41 + 85074b3 commit a4494a3

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)