mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
loader.js: Allow to initiate a refresh with __REFRESH__
This commit is contained in:
parent
cdfe7e9aba
commit
a3c04f9108
@ -597,6 +597,15 @@
|
|||||||
|
|
||||||
$redirectTarget = $('#col1');
|
$redirectTarget = $('#col1');
|
||||||
redirect = icinga.history.getCol1State();
|
redirect = icinga.history.getCol1State();
|
||||||
|
} else if (redirect.match(/__REFRESH__/)) {
|
||||||
|
if (req.$redirectTarget.is('#col1')) {
|
||||||
|
redirect = icinga.history.getCol1State();
|
||||||
|
} else if (req.$redirectTarget.is('#col2')) {
|
||||||
|
redirect = icinga.history.getCol2State().replace(/^#!/, '');
|
||||||
|
} else {
|
||||||
|
icinga.logger.error('Unable to refresh. Not a primary column: ', req.$redirectTarget);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var useHttp = req.getResponseHeader('X-Icinga-Redirect-Http');
|
var useHttp = req.getResponseHeader('X-Icinga-Redirect-Http');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user