Don't redirect or reload a page when confirmation dialog wasn't confirmed
This commit is contained in:
parent
6c0aed7f28
commit
148d30f74e
2 changed files with 33 additions and 1 deletions
|
|
@ -94,7 +94,7 @@
|
|||
e.preventDefault();
|
||||
confirmDelete(
|
||||
"<?= PHPCI_URL ?>project/delete/<?php print $project->getId(); ?>", "Project"
|
||||
).onClose = function () {window.location = '/'};
|
||||
).onCloseConfirmed = function () {window.location = '/'};
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue