From 6c404b81fbccb10167425c6b7b2b89f94cb233c5 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Thu, 14 Nov 2019 11:25:35 -0500 Subject: [PATCH] fix: use the correct attribute name for widgets --- public/src/widgets.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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);