mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
js: Don't mark requests caused by __BACK__
as autorefresh
It's not an autorefresh and causes issues with form.js otherwise.
This commit is contained in:
parent
11223aaf91
commit
f2e53d420b
@ -516,11 +516,15 @@
|
|||||||
$refreshTarget = $('#col1');
|
$refreshTarget = $('#col1');
|
||||||
}
|
}
|
||||||
|
|
||||||
_this.loadUrl(refreshUrl, $refreshTarget).autorefresh = true;
|
var req = _this.loadUrl(refreshUrl, $refreshTarget);
|
||||||
|
req.addToHistory = false;
|
||||||
|
req.scripted = true;
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
// TODO: Find a better solution than a hardcoded one
|
// TODO: Find a better solution than a hardcoded one
|
||||||
_this.loadUrl(refreshUrl, $refreshTarget).autorefresh = true;
|
var req = _this.loadUrl(refreshUrl, $refreshTarget);
|
||||||
|
req.addToHistory = false;
|
||||||
|
req.scripted = true;
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
$(window).off('popstate.__back__');
|
$(window).off('popstate.__back__');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user