Skip to content

Commit 1000faf

Browse files
committed
Revert "Remove redundant statistics update calls in footer"
This reverts commit bf82b69.
1 parent bf82b69 commit 1000faf

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

application/views/interface_assets/footer.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3056,8 +3056,9 @@ function updateCqStatistics() {
30563056

30573057
// Call on page load to initialize with filtered data
30583058
document.addEventListener('DOMContentLoaded', function() {
3059-
// Page has been loaded with server-calculated values
3060-
// No need to recalculate - the form filters handle updates via page reload
3059+
setTimeout(function() {
3060+
updateCqStatistics();
3061+
}, 500);
30613062
});
30623063

30633064
// Table search functionality
@@ -3077,6 +3078,8 @@ function updateCqStatistics() {
30773078
row.style.display = 'none';
30783079
}
30793080
});
3081+
3082+
updateCqStatistics();
30803083
});
30813084
}
30823085

@@ -3114,6 +3117,7 @@ function updateCqStatistics() {
31143117
}
31153118

31163119
rows.forEach(row => tbody.appendChild(row));
3120+
updateCqStatistics();
31173121
});
31183122
});
31193123

@@ -3305,8 +3309,9 @@ function updateWasStatistics() {
33053309

33063310
// Call on page load to initialize with filtered data
33073311
document.addEventListener('DOMContentLoaded', function() {
3308-
// Page has been loaded with server-calculated values
3309-
// No need to recalculate - the form filters handle updates via page reload
3312+
setTimeout(function() {
3313+
updateWasStatistics();
3314+
}, 500);
33103315
});
33113316

33123317
// Table search functionality
@@ -3326,6 +3331,8 @@ function updateWasStatistics() {
33263331
row.style.display = 'none';
33273332
}
33283333
});
3334+
3335+
updateWasStatistics();
33293336
});
33303337
}
33313338

@@ -3363,6 +3370,7 @@ function updateWasStatistics() {
33633370
}
33643371

33653372
rows.forEach(row => tbody.appendChild(row));
3373+
updateWasStatistics();
33663374
});
33673375
});
33683376

0 commit comments

Comments
 (0)