Node.js based forum software built for the modern web
dont add dupes to widgetLocations
barisusakli34b73e15e64b
diff --git a/public/src/widgets.js b/public/src/widgets.jsindex bc5036cb7b..47dffea3ce 100644--- a/public/src/widgets.js+++ b/public/src/widgets.js@@ -18,7 +18,10 @@var widgetLocations = ['sidebar', 'footer'], numLocations;$('#content [widget-area]').each(function() {- widgetLocations.push($(this).attr('widget-area'));+ var location = $(this).attr('widget-area');+ if ($.inArray(location, widgetLocations) === -1) {+ widgetLocations.push(location);+ }});numLocations = widgetLocations.length;