Node.js based forum software built for the modern web
added skins tab; closes #1293
psychobunnyc76a0734824c
diff --git a/public/src/forum/admin/themes.js b/public/src/forum/admin/themes.jsindex 6ef6b17c99..af0f0b4f94 100644--- a/public/src/forum/admin/themes.js+++ b/public/src/forum/admin/themes.js@@ -5,8 +5,8 @@ define(['forum/admin/settings'], function(Settings) {var Themes = {};function highlightSelectedTheme(themeId) {- $('#themes li[data-theme]').removeClass('btn-warning');- $('#themes li[data-theme="' + themeId + '"]').addClass('btn-warning');+ $('.themes li[data-theme]').removeClass('btn-warning');+ $('.themes li[data-theme="' + themeId + '"]').addClass('btn-warning');}Themes.init = function() {@@ -26,7 +26,7 @@ define(['forum/admin/settings'], function(Settings) {themeType = parentEl.attr('data-type'),cssSrc = parentEl.attr('data-css'),themeId = parentEl.attr('data-theme');-+socket.emit('admin.themes.set', {type: themeType,id: themeId,@@ -228,7 +228,7 @@ define(['forum/admin/settings'], function(Settings) {data: widgetData});});- console.log(template, location, widgets);+socket.emit('admin.widgets.set', {template: template,location: location,diff --git a/src/meta.js b/src/meta.jsindex 174aa91796..75bc0f0763 100644--- a/src/meta.js+++ b/src/meta.js@@ -158,8 +158,7 @@ var fs = require('fs'),break;case 'bootswatch':- themeData['theme:src'] = data.src;- db.setObject('config', themeData, callback);+ db.setObjectField('config', 'theme:src', data.src, callback);break;}}