acp remove logo fix

v1.18.x
psychobunny 9 years ago
parent 5555b9256d
commit a8d44758cb

@ -6,9 +6,7 @@ define('admin/settings/general', ['admin/settings'], function(Settings) {
Module.init = function() {
$('button[data-action="removeLogo"]').on('click', function() {
socket.emit('admin.settings.removeLogo', function() {
app.alertSuccess('Logo removed');
});
$('input[data-field="brand:logo"]').val('');
});
};

@ -201,10 +201,6 @@ SocketAdmin.settings.clearSitemapCache = function(socket, data, callback) {
callback();
};
SocketAdmin.settings.removeLogo = function(socket, data, callback) {
db.setObjectField('config', 'brand:logo', '', callback);
};
SocketAdmin.email.test = function(socket, data, callback) {
if (plugins.hasListeners('action:email.send')) {
emailer.send('test', socket.uid, {

Loading…
Cancel
Save