Don't redirect or reload a page when confirmation dialog wasn't confirmed

This commit is contained in:
Pavel Pavlov 2013-12-07 19:35:44 +04:00
commit 148d30f74e
2 changed files with 33 additions and 1 deletions

View file

@ -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>