Confirmation dialog before project is deleted (Fixes #739, #1000)

This commit is contained in:
Steve Robbins 2015-06-01 17:04:19 -07:00
parent d698b11673
commit 9adc4ce857
2 changed files with 2 additions and 1 deletions

View file

@ -66,6 +66,7 @@ PHPCI',
'build_now' => 'Build Now',
'edit_project' => 'Edit Project',
'delete_project' => 'Delete Project',
'delete_project_confirm' => 'Are you sure you want to delete this project? This cannot be undone.',
// Project Summary:
'no_builds_yet' => 'No builds yet!',

View file

@ -209,7 +209,7 @@
</li>
<li>
<a href="<?php print PHPCI_URL; ?>project/delete/<?php print $project->getId(); ?>">
<a href="<?php print PHPCI_URL; ?>project/delete/<?php print $project->getId(); ?>" onclick="return confirm('<?php Lang::out('delete_project_confirm') ?>')">
<i class="fa fa-angle-double-right"></i> <?php Lang::out('delete_project'); ?>
</a>
</li>