|
From: Benjamin C. <bc...@us...> - 2001-08-11 17:28:47
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv684
Modified Files:
bug.php
Log Message:
heh, you were sure, weren't you?
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- bug.php 2001/08/11 17:27:22 1.25
+++ bug.php 2001/08/11 17:28:43 1.26
@@ -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']}' onClick=\"return alert('Are you sure you want to delete this attachment?');\">Delete</a>";
+ $action .= " | <a href='attachment.php?del={$att['AttachmentID']}' onClick=\"return confirm('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';
|