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
parent
7b3b9c82ae
commit
ac6dbe4ed6
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue