mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
draft zone for widgets, closes #1238
This commit is contained in:
@@ -284,9 +284,12 @@ SocketAdmin.themes.set = function(socket, data, callback) {
|
||||
if(!data) {
|
||||
return callback(new Error('invalid data'));
|
||||
}
|
||||
meta.themes.set(data, function() {
|
||||
callback();
|
||||
meta.restart()
|
||||
|
||||
widgets.reset(function(err) {
|
||||
meta.themes.set(data, function() {
|
||||
callback();
|
||||
meta.restart();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user