From a8d44758cb1b3d65f4e2e78da855b21d7f4f6d5b Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 17 Sep 2015 19:04:30 -0400 Subject: [PATCH] acp remove logo fix --- public/src/admin/settings/general.js | 4 +--- src/socket.io/admin.js | 4 ---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/public/src/admin/settings/general.js b/public/src/admin/settings/general.js index 6f3faeb8c7..7b22e95042 100644 --- a/public/src/admin/settings/general.js +++ b/public/src/admin/settings/general.js @@ -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(''); }); }; diff --git a/src/socket.io/admin.js b/src/socket.io/admin.js index bd2abf01fe..9a247cc1b7 100644 --- a/src/socket.io/admin.js +++ b/src/socket.io/admin.js @@ -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, {