Merge pull request #3184 from Icinga/fix/session-timeout

JS: Always request application-state
This commit is contained in:
lippserd 2017-12-15 10:00:09 +01:00 committed by GitHub
commit 7b4435102a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -217,13 +217,17 @@
autorefresh: function () {
var _this = this;
if (! _this.autorefreshEnabled || _this.autorefreshSuspended) {
return;
}
$('.container').filter(this.filterAutorefreshingContainers).each(function (idx, el) {
var $el = $(el);
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') {
_this.icinga.logger.debug('No refresh, request pending for ', id);
return;