Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2020-05-26 10:00:13 +0300
committerGitHub <noreply@github.com>2020-05-26 10:00:13 +0300
commit4317d30d822a2b496649a74721debda87a011329 (patch)
tree8908880034407a7f3fa454434bd702c5aa4efa35 /plugins/Live
parent018070cb43b697b8cb7f5126570bd2f4e421c3dd (diff)
Fix live widget does not refresh under circumstances (#15987)
Diffstat (limited to 'plugins/Live')
-rw-r--r--plugins/Live/javascripts/live.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Live/javascripts/live.js b/plugins/Live/javascripts/live.js
index 839c902f1d..48717ca423 100644
--- a/plugins/Live/javascripts/live.js
+++ b/plugins/Live/javascripts/live.js
@@ -74,6 +74,8 @@
that._parseResponse(r);
}
+ that.options.interval = parseInt(that.options.interval, 10);
+
// add default interval to last interval if not updated or reset to default if so
if (!that.updated) {
that.currentInterval += that.options.interval;
@@ -168,7 +170,7 @@
return;
}
- this.currentInterval = this.options.interval;
+ this.currentInterval = parseInt(this.options.interval, 10);
if (0 === $(this.element).parents('.widget').length) {
var $rootScope = piwikHelper.getAngularDependency('$rootScope');