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:
Thomas Gelf 2014-06-25 20:15:44 +02:00
parent ae99dd39fd
commit 30106a9cbd
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}