|
|
|
@ -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;
|
|
|
|
|
});
|
|
|
|
|