js/loader: autorefresh requests should run parallel
The check whether a request was already running failed as soon as another request was activ. Now they run as they should.
This commit is contained in:
parent
ae99dd39fd
commit
30106a9cbd
|
@ -70,7 +70,7 @@
|
|||
}
|
||||
|
||||
// If we have a pending request for the same target...
|
||||
if (id in this.requests) {
|
||||
if (typeof this.requests[id] !== 'undefined') {
|
||||
if (autorefresh) {
|
||||
return false;
|
||||
}
|
||||
|
@ -163,7 +163,7 @@
|
|||
$('.container').filter(this.filterAutorefreshingContainers).each(function (idx, el) {
|
||||
var $el = $(el);
|
||||
var id = $el.attr('id');
|
||||
if (id in self.requests) {
|
||||
if (typeof self.requests[id] !== 'undefined') {
|
||||
self.icinga.logger.debug('No refresh, request pending for ', id);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue