js: Transmit `X-Icinga-Autorefresh=1` with autorefresh requests
This commit is contained in:
parent
2c7b2330a7
commit
3e29fba052
|
@ -245,6 +245,10 @@
|
|||
// Not sure whether we need this Accept-header
|
||||
var headers = { 'X-Icinga-Accept': 'text/html' };
|
||||
|
||||
if (autorefresh) {
|
||||
headers['X-Icinga-Autorefresh'] = '1';
|
||||
}
|
||||
|
||||
// Ask for a new window id in case we don't already have one
|
||||
if (this.icinga.ui.hasWindowId()) {
|
||||
var windowId = this.icinga.ui.getWindowId();
|
||||
|
|
Loading…
Reference in New Issue