|
From: Benjamin C. <bc...@us...> - 2001-08-11 17:27:25
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv477
Modified Files:
bug.php
Log Message:
Are you sure?
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- bug.php 2001/08/11 17:24:30 1.24
+++ bug.php 2001/08/11 17:27:22 1.25
@@ -418,7 +418,7 @@
if (is_readable(INSTALLPATH.'/'.ATTACHMENT_PATH."/{$row['Project']}/$bugid-{$att['FileName']}")) {
$action = "<a href='attachment.php?attachid={$att['AttachmentID']}'>View</a>";
if ($perm->have_perm('Administrator')) {
- $action .= " | <a href='attachment.php?del={$att['AttachmentID']}'>Delete</a>";
+ $action .= " | <a href='attachment.php?del={$att['AttachmentID']}' onClick=\"return alert('Are you sure you want to delete this attachment?');\">Delete</a>";
}
if ($att['FileSize'] > 1024) {
$attsize = number_format((round($att['FileSize']) / 1024 * 100) / 100).'k';
|