mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15: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]]'));
|
return callback(new Error('[[error:invalid-data]]'));
|
||||||
}
|
}
|
||||||
|
|
||||||
widgets.reset(function(err) {
|
var wrappedCallback = function(err) {
|
||||||
meta.themes.set(data, function() {
|
meta.themes.set(data, function() {
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
});
|
};
|
||||||
|
if (data.type == 'bootswatch') {
|
||||||
|
wrappedCallback();
|
||||||
|
} else {
|
||||||
|
widgets.reset(wrappedCallback);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
SocketAdmin.themes.updateBranding = function(socket, data, callback) {
|
SocketAdmin.themes.updateBranding = function(socket, data, callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user