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();
}