mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Merge pull request #3184 from Icinga/fix/session-timeout
JS: Always request application-state
This commit is contained in:
commit
7b4435102a
@ -217,13 +217,17 @@
|
|||||||
|
|
||||||
autorefresh: function () {
|
autorefresh: function () {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
if (! _this.autorefreshEnabled || _this.autorefreshSuspended) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$('.container').filter(this.filterAutorefreshingContainers).each(function (idx, el) {
|
$('.container').filter(this.filterAutorefreshingContainers).each(function (idx, el) {
|
||||||
var $el = $(el);
|
var $el = $(el);
|
||||||
var id = $el.attr('id');
|
var id = $el.attr('id');
|
||||||
|
|
||||||
|
// Always request application-state
|
||||||
|
if (id !== 'application-state' && (! _this.autorefreshEnabled || _this.autorefreshSuspended)) {
|
||||||
|
// Continue
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof _this.requests[id] !== 'undefined') {
|
if (typeof _this.requests[id] !== 'undefined') {
|
||||||
_this.icinga.logger.debug('No refresh, request pending for ', id);
|
_this.icinga.logger.debug('No refresh, request pending for ', id);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user