From 08359cdd053fed5d60a710122963828f46983a01 Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Tue, 24 Aug 2021 16:14:41 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03928=20Replace=20legacy=20loading=20gif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/simple_graph.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/simple_graph.js b/js/simple_graph.js index f4569d0da..f36aa8910 100644 --- a/js/simple_graph.js +++ b/js/simple_graph.js @@ -806,14 +806,12 @@ $(function() $('#'+sId+'_contexts').multiselect('getChecked').each(function() { aContexts[$(this).val()] = me.options.additional_contexts[$(this).val()].oql; }); this._close_all_tooltips(); - this.oPaper.rect(this.xPan, this.yPan, this.element.width(), this.element.height()).attr({fill: '#000', opacity: 0.4, 'stroke-width': 0}); - this.oPaper.rect(this.xPan + this.element.width()/2 - 100, this.yPan + this.element.height()/2 - 10, 200, 20) - .attr({fill: 'url(../setup/orange-progress.gif)', stroke: '#000', 'stroke-width': 1}); - this.oPaper.text(this.xPan + this.element.width()/2, this.yPan + this.element.height()/2 - 20, this.options.labels.loading); + this.element.block({message:this.options.labels.loading}); $('#'+sId+'_refresh_btn').button('disable'); $.post(sUrl, {excluded_classes: this.options.excluded_classes, g: this.options.grouping_threshold, sources: this.options.sources, excluded: this.options.excluded, contexts: aContexts, context_key: this.options.context_key }, function(data) { me.load(data); + me.element.unblock(); $('#'+sId+'_refresh_btn').button('enable'); }, 'json'); },