diff --git a/public/language/en-GB/admin/advanced/events.json b/public/language/en-GB/admin/advanced/events.json index 56d9457971..aa9e87e0e4 100644 --- a/public/language/en-GB/admin/advanced/events.json +++ b/public/language/en-GB/admin/advanced/events.json @@ -2,7 +2,6 @@ "events": "Events", "no-events": "There are no events", "control-panel": "Events Control Panel", - "delete-events": "Delete Events", "filters": "Filters", "filters-apply": "Apply Filters", "filter-type": "Event Type", diff --git a/public/src/admin/advanced/events.js b/public/src/admin/advanced/events.js index 147ad193e5..333e74cf0a 100644 --- a/public/src/admin/advanced/events.js +++ b/public/src/admin/advanced/events.js @@ -5,26 +5,6 @@ define('admin/advanced/events', function () { var Events = {}; Events.init = function () { - $('[data-action="clear"]').on('click', function () { - socket.emit('admin.deleteAllEvents', function (err) { - if (err) { - return app.alertError(err.message); - } - $('.events-list').empty(); - }); - }); - - $('.delete-event').on('click', function () { - var parentEl = $(this).parents('[data-eid]'); - var eid = parentEl.attr('data-eid'); - socket.emit('admin.deleteEvents', [eid], function (err) { - if (err) { - return app.alertError(err.message); - } - parentEl.remove(); - }); - }); - $('#apply').on('click', Events.refresh); }; diff --git a/src/socket.io/admin.js b/src/socket.io/admin.js index 89157294ce..f433dd8809 100644 --- a/src/socket.io/admin.js +++ b/src/socket.io/admin.js @@ -327,14 +327,6 @@ SocketAdmin.errors.clear = function (socket, data, callback) { meta.errors.clear(callback); }; -SocketAdmin.deleteEvents = function (socket, eids, callback) { - events.deleteEvents(eids, callback); -}; - -SocketAdmin.deleteAllEvents = function (socket, data, callback) { - events.deleteAll(callback); -}; - SocketAdmin.getSearchDict = async function (socket) { const settings = await user.getSettings(socket.uid); const lang = settings.userLang || meta.config.defaultLang || 'en-GB'; diff --git a/src/views/admin/advanced/events.tpl b/src/views/admin/advanced/events.tpl index f7a4a94c3c..154d3d7e11 100644 --- a/src/views/admin/advanced/events.tpl +++ b/src/views/admin/advanced/events.tpl @@ -21,7 +21,6 @@ {events.user.username} - {events.timestampISO}
{events.jsonString}@@ -60,12 +59,5 @@ -