Make delete dialog disappear on success. Fixes #3377
This commit is contained in:
parent
4351f51929
commit
c6eedd434c
|
@ -767,14 +767,15 @@ function handleClick(event) {
|
||||||
// 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue