mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
added skins tab; closes #1293
This commit is contained in:
@@ -5,8 +5,8 @@ define(['forum/admin/settings'], function(Settings) {
|
|||||||
var Themes = {};
|
var Themes = {};
|
||||||
|
|
||||||
function highlightSelectedTheme(themeId) {
|
function highlightSelectedTheme(themeId) {
|
||||||
$('#themes li[data-theme]').removeClass('btn-warning');
|
$('.themes li[data-theme]').removeClass('btn-warning');
|
||||||
$('#themes li[data-theme="' + themeId + '"]').addClass('btn-warning');
|
$('.themes li[data-theme="' + themeId + '"]').addClass('btn-warning');
|
||||||
}
|
}
|
||||||
|
|
||||||
Themes.init = function() {
|
Themes.init = function() {
|
||||||
@@ -228,7 +228,7 @@ define(['forum/admin/settings'], function(Settings) {
|
|||||||
data: widgetData
|
data: widgetData
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
console.log(template, location, widgets);
|
|
||||||
socket.emit('admin.widgets.set', {
|
socket.emit('admin.widgets.set', {
|
||||||
template: template,
|
template: template,
|
||||||
location: location,
|
location: location,
|
||||||
|
|||||||
@@ -158,8 +158,7 @@ var fs = require('fs'),
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'bootswatch':
|
case 'bootswatch':
|
||||||
themeData['theme:src'] = data.src;
|
db.setObjectField('config', 'theme:src', data.src, callback);
|
||||||
db.setObject('config', themeData, callback);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user