Make delete dialog disappear on success. Fixes #3377

This commit is contained in:
Isaac Connor 2021-10-22 20:59:04 -04:00 committed by Isaac Connor
parent bd8ed71ffc
commit 94752e0cf3
1 changed files with 3 additions and 2 deletions

View File

@ -773,8 +773,9 @@ function manageDelConfirmModalBtns() {
} }
evt.preventDefault(); evt.preventDefault();
$j.getJSON(thisUrl + '?request=events&task=delete&eids[]='+eventData.Id) $j.getJSON(thisUrl + '?request=event&task=delete&id='+eventData.Id)
.done(function(data) { .done(function(data) {
$j('#deleteConfirm').modal('hide');
streamNext(true); streamNext(true);
}) })
.fail(logAjaxFail); .fail(logAjaxFail);