mirror of https://github.com/MISP/MISP
fix: [UI] Blocklist mass delete
parent
28fc46082b
commit
ab2179039c
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue