diff --git a/public/src/widgets.js b/public/src/widgets.js index 2ce59becb0..152ba80c6d 100644 --- a/public/src/widgets.js +++ b/public/src/widgets.js @@ -24,17 +24,17 @@ }); if (location === 'footer' && !$('#content [widget-area="footer"],#content [data-widget-area="footer"]').length) { - $('#content').append($('
')); + $('#content').append($('
')); } else if (location === 'sidebar' && !$('#content [widget-area="sidebar"],#content [data-widget-area="sidebar"]').length) { if ($('[component="account/cover"]').length) { - $('[component="account/cover"]').nextAll().wrapAll($('
')); + $('[component="account/cover"]').nextAll().wrapAll($('
')); } else if ($('[component="groups/cover"]').length) { - $('[component="groups/cover"]').nextAll().wrapAll($('
')); + $('[component="groups/cover"]').nextAll().wrapAll($('
')); } else { - $('#content > *').wrapAll($('
')); + $('#content > *').wrapAll($('
')); } } else if (location === 'header' && !$('#content [widget-area="header"],#content [data-widget-area="header"]').length) { - $('#content').prepend($('
')); + $('#content').prepend($('
')); } area = $('#content [widget-area="' + location + '"],#content [data-widget-area="' + location + '"]').eq(0);