diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2015-10-16 20:41:48 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2015-10-16 20:41:48 +0300 |
commit | d955ba61f41c3659f2fab0af184d2ca7f1b4ff14 (patch) | |
tree | 602ab0f3e5b5466fcbe89f7af26130f526e74cfb /plugins/Dashboard | |
parent | d6969f70ff081400540f5f8a255dfb2e1b89df61 (diff) |
refs #9035 angular components are not rendered in dashboard view
Diffstat (limited to 'plugins/Dashboard')
-rwxr-xr-x | plugins/Dashboard/javascripts/dashboardWidget.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/Dashboard/javascripts/dashboardWidget.js b/plugins/Dashboard/javascripts/dashboardWidget.js index accd0aa2c2..728593715f 100755 --- a/plugins/Dashboard/javascripts/dashboardWidget.js +++ b/plugins/Dashboard/javascripts/dashboardWidget.js @@ -118,9 +118,12 @@ var self = this, currentWidget = this.element; function onWidgetLoadedReplaceElementWithContent(loadedContent) { - $('.widgetContent', currentWidget).html(loadedContent); - $('.widgetContent', currentWidget).removeClass('loading'); - $('.widgetContent', currentWidget).trigger('widget:create', [self]); + var $widgetContent = $('.widgetContent', currentWidget); + + $widgetContent.html(loadedContent); + piwikHelper.compileAngularComponents($widgetContent); + $widgetContent.removeClass('loading'); + $widgetContent.trigger('widget:create', [self]); } // Reading segment from hash tag (standard case) or from the URL (when embedding dashboard) @@ -346,4 +349,4 @@ } }); -})(jQuery);
\ No newline at end of file +})(jQuery); |