|
|
@ -44,12 +44,12 @@ define('admin/appearance/themes', function() {
|
|
|
|
if (confirm) {
|
|
|
|
if (confirm) {
|
|
|
|
socket.emit('admin.themes.set', {
|
|
|
|
socket.emit('admin.themes.set', {
|
|
|
|
type: 'local',
|
|
|
|
type: 'local',
|
|
|
|
id: 'nodebb-theme-vanilla'
|
|
|
|
id: 'nodebb-theme-persona'
|
|
|
|
}, function(err) {
|
|
|
|
}, function(err) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
return app.alertError(err.message);
|
|
|
|
return app.alertError(err.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
highlightSelectedTheme('nodebb-theme-vanilla');
|
|
|
|
highlightSelectedTheme('nodebb-theme-persona');
|
|
|
|
app.alert({
|
|
|
|
app.alert({
|
|
|
|
alert_id: 'admin:theme',
|
|
|
|
alert_id: 'admin:theme',
|
|
|
|
type: 'success',
|
|
|
|
type: 'success',
|
|
|
|