Silent refresh bootstrapTable on Console page (console.js)

- The table refresh message will not appear briefly. The table will not "flicker."
Scrolling will attempt to return to the position it was in before the refresh.
pull/4719/head
IgorA100 2026-03-20 23:35:59 +03:00 committed by GitHub
parent 7b3b9c82ae
commit ac6dbe4ed6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -390,7 +390,9 @@ function selectMonitor(element) {
function reloadWindow() {
// Use table refresh instead of full page reload
if (table && table.length) {
table.bootstrapTable('refresh');
const scrollPosition = table.bootstrapTable('getScrollPosition');
table.bootstrapTable('refresh', {silent: true, reinit: false});
table.bootstrapTable('scrollTo', scrollPosition);
} else {
window.location.replace(thisUrl);
}