diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-10-11 01:18:25 +0300 |
---|---|---|
committer | Kate Butler <kate@innocraft.com> | 2019-10-11 01:18:25 +0300 |
commit | 2956209a7af53cfad8231a1f0625a19bb20decf1 (patch) | |
tree | 10a6bda4e22a5f783b4a1dcf811dafc654d8a822 /plugins/Dashboard/javascripts | |
parent | b14e22f1aced7a1a50aa67b473bd48f8b354ba1f (diff) |
Fix moving some widgets doesn't work (#14951)
Diffstat (limited to 'plugins/Dashboard/javascripts')
-rw-r--r-- | plugins/Dashboard/javascripts/dashboardObject.js | 6 |
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); |