Don't reset widgets when changing skin

v1.18.x
Charles 11 years ago
parent 76190718d3
commit 51fb7786f5

@ -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) {

Loading…
Cancel
Save