mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
acp remove logo fix
This commit is contained in:
@@ -6,9 +6,7 @@ define('admin/settings/general', ['admin/settings'], function(Settings) {
|
|||||||
|
|
||||||
Module.init = function() {
|
Module.init = function() {
|
||||||
$('button[data-action="removeLogo"]').on('click', function() {
|
$('button[data-action="removeLogo"]').on('click', function() {
|
||||||
socket.emit('admin.settings.removeLogo', function() {
|
$('input[data-field="brand:logo"]').val('');
|
||||||
app.alertSuccess('Logo removed');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -201,10 +201,6 @@ SocketAdmin.settings.clearSitemapCache = function(socket, data, callback) {
|
|||||||
callback();
|
callback();
|
||||||
};
|
};
|
||||||
|
|
||||||
SocketAdmin.settings.removeLogo = function(socket, data, callback) {
|
|
||||||
db.setObjectField('config', 'brand:logo', '', callback);
|
|
||||||
};
|
|
||||||
|
|
||||||
SocketAdmin.email.test = function(socket, data, callback) {
|
SocketAdmin.email.test = function(socket, data, callback) {
|
||||||
if (plugins.hasListeners('action:email.send')) {
|
if (plugins.hasListeners('action:email.send')) {
|
||||||
emailer.send('test', socket.uid, {
|
emailer.send('test', socket.uid, {
|
||||||
|
|||||||
Reference in New Issue
Block a user