Fix url to ajax endpoint for deleting snapshots.
This commit is contained in:
parent
f0b2f75d91
commit
066bb891af
|
@ -90,7 +90,7 @@ function getDelConfirmModal() {
|
||||||
// Manage the DELETE CONFIRMATION modal button
|
// Manage the DELETE CONFIRMATION modal button
|
||||||
function manageDelConfirmModalBtns() {
|
function manageDelConfirmModalBtns() {
|
||||||
document.getElementById("delConfirmBtn").addEventListener("click", function onDelConfirmClick(evt) {
|
document.getElementById("delConfirmBtn").addEventListener("click", function onDelConfirmClick(evt) {
|
||||||
if ( ! canEdit.Events ) {
|
if (!canEdit.Events) {
|
||||||
enoperm();
|
enoperm();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,7 @@ function manageDelConfirmModalBtns() {
|
||||||
var selections = getIdSelections();
|
var selections = getIdSelections();
|
||||||
|
|
||||||
evt.preventDefault();
|
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) {
|
.done( function(data) {
|
||||||
$j('#snapshotTable').bootstrapTable('refresh');
|
$j('#snapshotTable').bootstrapTable('refresh');
|
||||||
$j('#deleteConfirm').modal('hide');
|
$j('#deleteConfirm').modal('hide');
|
||||||
|
|
Loading…
Reference in New Issue