fix: [UI] Blocklist mass delete

pull/6293/head
Jakub Onderka 2020-09-07 18:14:01 +02:00
parent 28fc46082b
commit ab2179039c
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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");
});