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>2019-10-11 01:18:25 +0300
committerKate Butler <kate@innocraft.com>2019-10-11 01:18:25 +0300
commit2956209a7af53cfad8231a1f0625a19bb20decf1 (patch)
tree10a6bda4e22a5f783b4a1dcf811dafc654d8a822 /plugins/Dashboard
parentb14e22f1aced7a1a50aa67b473bd48f8b354ba1f (diff)
Fix moving some widgets doesn't work (#14951)
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r--plugins/Dashboard/javascripts/dashboardObject.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Dashboard/javascripts/dashboardObject.js b/plugins/Dashboard/javascripts/dashboardObject.js
index cb603be3a6..4f0e1a2553 100644
--- a/plugins/Dashboard/javascripts/dashboardObject.js
+++ b/plugins/Dashboard/javascripts/dashboardObject.js
@@ -447,8 +447,8 @@
* @param {String|jQuery} $widget
*/
function reloadWidget($widget) {
- if (typeof widget === 'string') {
- $widget = $('[widgetId="' + uniqueId + '"]', dashboardElement);
+ if (typeof $widget === 'string') {
+ $widget = $('[widgetid="' + $widget + '"]', dashboardElement);
}
$widget.dashboardWidget('reload', false, true);
@@ -667,4 +667,4 @@
}
}
-})(jQuery); \ No newline at end of file
+})(jQuery);