Merge pull request #1707 from char101/PR/dont-reset-widgets-on-changing-skins

Don't reset widgets when changing skin
v1.18.x
psychobunny 11 years ago
commit d2e1cc3371

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