mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-19 05:52:57 +01:00
more branding stuff
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user