mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
added skins tab; closes #1293
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user