|
|
@ -222,9 +222,9 @@ define('forum/admin/themes', ['forum/admin/settings'], function(Settings) {
|
|
|
|
$('#widgets .save').on('click', saveWidgets);
|
|
|
|
$('#widgets .save').on('click', saveWidgets);
|
|
|
|
|
|
|
|
|
|
|
|
function 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);
|
|
|
|
el = $(el);
|
|
|
|
|
|
|
|
|
|
|
|
var template = el.attr('data-template'),
|
|
|
|
var template = el.attr('data-template'),
|
|
|
|