mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
Don't reset widgets when changing skin
This commit is contained in:
@@ -75,11 +75,16 @@ SocketAdmin.themes.set = function(socket, data, callback) {
|
||||
return callback(new Error('[[error:invalid-data]]'));
|
||||
}
|
||||
|
||||
widgets.reset(function(err) {
|
||||
var wrappedCallback = function(err) {
|
||||
meta.themes.set(data, function() {
|
||||
callback();
|
||||
});
|
||||
});
|
||||
};
|
||||
if (data.type == 'bootswatch') {
|
||||
wrappedCallback();
|
||||
} else {
|
||||
widgets.reset(wrappedCallback);
|
||||
}
|
||||
};
|
||||
|
||||
SocketAdmin.themes.updateBranding = function(socket, data, callback) {
|
||||
|
||||
Reference in New Issue
Block a user