mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 12:32:50 +02:00
closes #1704
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user