more branding stuff

v1.18.x
psychobunny 10 years ago
parent cf35423a20
commit 27bd23ca5c

@ -117,8 +117,6 @@ define('forum/admin/themes', ['forum/admin/settings'], function(Settings) {
Themes.prepareWidgets();
populateBranding();
admin.enableColorPicker($('.branding'));
Settings.prepare();
};
@ -316,21 +314,5 @@ define('forum/admin/themes', ['forum/admin/settings'], function(Settings) {
});
};
function populateBranding() {
require(['settings'], function (settings) {
var wrapper = $('#branding');
settings.sync('branding', wrapper);
$('#save-branding').click(function(event) {
settings.persist('branding', $('#branding'), function() {
socket.emit('admin.themes.updateBranding');
});
event.preventDefault();
});
});
}
return Themes;
});

Loading…
Cancel
Save