From 5c0fdc9db5b4a2829c275575d6c651ec6f9d3fa4 Mon Sep 17 00:00:00 2001 From: Gregor Aisch <contact@vis4.net> Date: Mon, 18 Feb 2013 22:16:27 +0100 Subject: [PATCH] less dirty hack by using honeypot argument --- plugins/Dashboard/templates/dashboardWidget.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/plugins/Dashboard/templates/dashboardWidget.js b/plugins/Dashboard/templates/dashboardWidget.js index 982158fda5..b8e5925ad7 100755 --- a/plugins/Dashboard/templates/dashboardWidget.js +++ b/plugins/Dashboard/templates/dashboardWidget.js @@ -57,7 +57,7 @@ var self = this; this.element.on('setParameters.dashboardWidget', function(e, params) { self.setParameters(params); }); - this.reload(true); + this.reload(true, true); }, /** @@ -132,10 +132,11 @@ /** * Reloads the widgets content with the currently set parameters */ - reload: function(hideLoading) { - - piwikHelper.log(arguments.callee.caller, arguments.callee.caller == this._create); - if (arguments.callee.caller != this._create) return; + reload: function(hideLoading, notJQueryUI) { + if (!notJQueryUI) { + piwikHelper.log('widget.reload() was called by jquery.ui', arguments.callee.caller); + return; + } piwikHelper.log('widget.reload() '+this.uniqueId); var self = this, currentWidget = this.element; @@ -258,7 +259,7 @@ $('.button#refresh', widgetElement) .on('click.dashboardWidget', function(ev){ - self.reload(); + self.reload(false, true); }); widgetElement.show(); -- GitLab