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:
Diffstat (limited to 'plugins/Live/javascripts/live.js')
-rw-r--r--plugins/Live/javascripts/live.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/Live/javascripts/live.js b/plugins/Live/javascripts/live.js
index bf386fdb88..95688e147d 100644
--- a/plugins/Live/javascripts/live.js
+++ b/plugins/Live/javascripts/live.js
@@ -65,7 +65,14 @@
ajaxRequest.addParams(this.options.dataUrlParams, 'GET');
ajaxRequest.setFormat('html');
ajaxRequest.setCallback(function (r) {
- that._parseResponse(r);
+ if (that.options.replaceContent) {
+ $(that.element).html(r);
+ if (that.options.fadeInSpeed) {
+ $(that.element).effect("highlight", {}, that.options.fadeInSpeed);
+ }
+ } else {
+ that._parseResponse(r);
+ }
// add default interval to last interval if not updated or reset to default if so
if (!that.updated) {