From bbd4201a3804fabf54fd715a52b10f9a1ef1b722 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 17 Jun 2014 12:57:59 -0400 Subject: [PATCH] closes #1704 --- public/src/forum/admin/themes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/forum/admin/themes.js b/public/src/forum/admin/themes.js index dc797d09e1..89fba34c4b 100644 --- a/public/src/forum/admin/themes.js +++ b/public/src/forum/admin/themes.js @@ -222,9 +222,9 @@ define('forum/admin/themes', ['forum/admin/settings'], function(Settings) { $('#widgets .save').on('click', saveWidgets); function saveWidgets() { - var total = $('#widgets [data-template]').length; + var total = $('#widgets [data-template][data-location]').length; - $('#widgets [data-template]').each(function(i, el) { + $('#widgets [data-template][data-location]').each(function(i, el) { el = $(el); var template = el.attr('data-template'),