From 06b2a6ff68d55200dec66d050f3ad49deb83c917 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 11 Feb 2015 21:09:43 -0500 Subject: [PATCH] closes #2717 --- public/src/widgets.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/public/src/widgets.js b/public/src/widgets.js index 2200f58d5e..936ce9cd95 100644 --- a/public/src/widgets.js +++ b/public/src/widgets.js @@ -53,8 +53,7 @@ if (location === 'footer' && !$('#content [widget-area="footer"]').length) { $('#content').append($('
')); } else if (location === 'sidebar' && !$('#content [widget-area="sidebar"]').length) { - $('#content > *').wrapAll($('
')); - $('#content').append($('
')); + $('#content > *').wrapAll($('
')); } else if (location === 'header' && !$('#content [widget-area="header"]').length) { $('#content').prepend($('
')); } @@ -69,11 +68,11 @@ ajaxify.widgets.reposition(location); } - $('#content [widget-area] img:not(.user-img)').addClass('img-responsive'); + $('#content [widget-area] img:not(.user-img)').addClass('img-responsive'); } - + $(window).trigger('action:widgets.loaded', {}); - + if (typeof callback === 'function') { callback(); }