From ae2c2fd1cee3acdbee021210e44f9bbefa31826d Mon Sep 17 00:00:00 2001 From: sgiehl Date: Fri, 12 Apr 2013 13:18:58 +0200 Subject: [PATCH] refs #3813 clean solution to make popovers work in widgetize mode --- plugins/CoreHome/templates/broadcast.js | 3 +++ plugins/Widgetize/templates/empty.tpl | 9 +-------- plugins/Widgetize/templates/iframe.tpl | 8 -------- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/plugins/CoreHome/templates/broadcast.js b/plugins/CoreHome/templates/broadcast.js index 2235ecd2dca..b47eae3deb7 100644 --- a/plugins/CoreHome/templates/broadcast.js +++ b/plugins/CoreHome/templates/broadcast.js @@ -325,6 +325,9 @@ var broadcast = { * Update the part after the second hash */ propagateNewPopoverParameter: function (handlerName, value) { + // init broadcast if not already done (it is required to make popovers work in widgetize mode) + broadcast.init(); + var hash = broadcast.getHashFromUrl(window.location.href); var popover = ''; diff --git a/plugins/Widgetize/templates/empty.tpl b/plugins/Widgetize/templates/empty.tpl index 0ab5d22abdd..ce0fc1b4ac4 100644 --- a/plugins/Widgetize/templates/empty.tpl +++ b/plugins/Widgetize/templates/empty.tpl @@ -1,8 +1 @@ -{$content} - \ No newline at end of file +{$content} \ No newline at end of file diff --git a/plugins/Widgetize/templates/iframe.tpl b/plugins/Widgetize/templates/iframe.tpl index 7e0b5bcf9cf..eb8287098a5 100644 --- a/plugins/Widgetize/templates/iframe.tpl +++ b/plugins/Widgetize/templates/iframe.tpl @@ -19,13 +19,5 @@ {$content} - -