From 066bb891af313fa96d1135a0f2a5a5bba31ff69e Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 6 Aug 2021 19:18:27 -0400 Subject: [PATCH] Fix url to ajax endpoint for deleting snapshots. --- web/skins/classic/views/js/snapshots.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/js/snapshots.js b/web/skins/classic/views/js/snapshots.js index 4aba92b85..a43c0ceec 100644 --- a/web/skins/classic/views/js/snapshots.js +++ b/web/skins/classic/views/js/snapshots.js @@ -90,7 +90,7 @@ function getDelConfirmModal() { // Manage the DELETE CONFIRMATION modal button function manageDelConfirmModalBtns() { document.getElementById("delConfirmBtn").addEventListener("click", function onDelConfirmClick(evt) { - if ( ! canEdit.Events ) { + if (!canEdit.Events) { enoperm(); return; } @@ -98,7 +98,7 @@ function manageDelConfirmModalBtns() { var selections = getIdSelections(); evt.preventDefault(); - $j.getJSON(thisUrl + '?request=events&task=delete&eids[]='+selections.join('&eids[]=')) + $j.getJSON(thisUrl + '?request=snapshots&task=delete&ids[]='+selections.join('&ids[]=')) .done( function(data) { $j('#snapshotTable').bootstrapTable('refresh'); $j('#deleteConfirm').modal('hide');