mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
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 we have a pending request for the same target...
|
||||||
if (id in this.requests) {
|
if (typeof this.requests[id] !== 'undefined') {
|
||||||
if (autorefresh) {
|
if (autorefresh) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@
|
|||||||
$('.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');
|
||||||
if (id in self.requests) {
|
if (typeof self.requests[id] !== 'undefined') {
|
||||||
self.icinga.logger.debug('No refresh, request pending for ', id);
|
self.icinga.logger.debug('No refresh, request pending for ', id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user