From ab2179039cc8664010567d7034c688c2a588e467 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Mon, 7 Sep 2020 18:14:01 +0200 Subject: [PATCH] fix: [UI] Blocklist mass delete --- app/Controller/EventBlocklistsController.php | 2 +- app/webroot/js/misp.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Controller/EventBlocklistsController.php b/app/Controller/EventBlocklistsController.php index 1027b0d97..35f6e33e1 100644 --- a/app/Controller/EventBlocklistsController.php +++ b/app/Controller/EventBlocklistsController.php @@ -92,7 +92,7 @@ class EventBlocklistsController extends AppController } else { $ids = json_decode($this->request->query('ids'), true); if (empty($ids)) { - throw new NotFoundException(__('Invalid event IDs.')); + throw new NotFoundException(__('Invalid event blocklist IDs.')); } $this->set('event_ids', $ids); diff --git a/app/webroot/js/misp.js b/app/webroot/js/misp.js index 246947a6e..d7d54b812 100644 --- a/app/webroot/js/misp.js +++ b/app/webroot/js/misp.js @@ -931,7 +931,7 @@ function multiSelectToggleFeeds(on, cache) { }); } -function multiSelectDeleteEventBlacklist(on, cache) { +function multiSelectDeleteEventBlocklist(on, cache) { var selected = []; $(".select").each(function() { if ($(this).is(":checked")) { @@ -941,7 +941,7 @@ function multiSelectDeleteEventBlacklist(on, cache) { } } }); - $.get(baseurl + "/eventBlacklists/massDelete?ids=" + JSON.stringify(selected), function(data) { + $.get(baseurl + "/eventBlocklists/massDelete?ids=" + JSON.stringify(selected), function(data) { $("#confirmation_box").html(data); openPopup("#confirmation_box"); });