mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
loader.js: Don't refresh twice upon __CLOSE__
This commit is contained in:
parent
648cdd7ef4
commit
03f62887b8
@ -601,19 +601,6 @@
|
||||
refresh.addToHistory = true;
|
||||
refresh.scripted = true;
|
||||
|
||||
var _this = this;
|
||||
setTimeout(function () {
|
||||
// TODO: Find a better solution than a hardcoded one
|
||||
// This is still the *cheat* to get live results
|
||||
// (in case there's a delay and a change is not instantly effective)
|
||||
var secondRefresh = _this.loadUrl(refreshUrl, $refreshTarget);
|
||||
if (secondRefresh !== refresh) {
|
||||
// Only change these properties if it's not still the first refresh
|
||||
secondRefresh.addToHistory = false;
|
||||
secondRefresh.scripted = true;
|
||||
}
|
||||
}, 1000);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user