diff --git a/PHPCI/Controller/ProjectController.php b/PHPCI/Controller/ProjectController.php index bbc8a7b5..eaad90a1 100644 --- a/PHPCI/Controller/ProjectController.php +++ b/PHPCI/Controller/ProjectController.php @@ -79,6 +79,7 @@ class ProjectController extends \PHPCI\Controller $this->_projectStore->delete($project); header('Location: '.PHPCI_URL); + exit; } /** diff --git a/PHPCI/View/Build/view.phtml b/PHPCI/View/Build/view.phtml index b5aa7324..f57a1a45 100644 --- a/PHPCI/View/Build/view.phtml +++ b/PHPCI/View/Build/view.phtml @@ -13,7 +13,7 @@
  • Rebuild
  • User()->getIsAdmin()): ?> -
  • Delete Build
  • +
  • Delete Build
  • @@ -73,8 +73,12 @@ }, 10000); - $(document).ready(function() - { + $(function() { updateBuildView(window.initial); + + $('#delete-build').on('click', function (e) { + e.preventDefault(); + confirmDelete("build/delete/getId(); ?>"); + }); }); \ No newline at end of file diff --git a/PHPCI/View/Project/view.phtml b/PHPCI/View/Project/view.phtml index bb8aec03..77d488fc 100644 --- a/PHPCI/View/Project/view.phtml +++ b/PHPCI/View/Project/view.phtml @@ -14,7 +14,7 @@ User()->getIsAdmin()): ?>
  • Edit Project
  • -
  • Delete Project
  • +
  • Delete Project
  • @@ -80,9 +80,16 @@