diff options
-rw-r--r-- | forum/utils/files.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/forum/utils/files.php b/forum/utils/files.php index 62b2b52..7356ff8 100644 --- a/forum/utils/files.php +++ b/forum/utils/files.php @@ -20,9 +20,9 @@ class File { global $PERMSTORE, $current_user, $users; echo " <div class=\"file\">\n"; if($current_user->uid == 0) { - echo " <a class=\"delete\" href=\"?mode=filehandler&task=delete&fid=" . $this->fid . "\">X</a>\n"; + echo " <a class=\"delete\" onclick=\"return confirm('Really delete?')\" onkeypress=\"return confirm('Really delete?')\" href=\"?mode=filehandler&task=delete&fid=" . $this->fid . "\">X</a>\n"; } - echo " <div class=\"preview\"><a href=\"" . $this->link() . "\"><img src=\"?mode=file&preview=1&fid=" . $this->fid . "\"</a></div>\n"; + echo " <div class=\"preview\"><a href=\"" . $this->link() . "\"><img src=\"?mode=file&preview=1&fid=" . $this->fid . "\"/></a></div>\n"; echo " <div class=\"insertcommand\">{{" . $this->fid . "}}</div>\n"; echo " <div class=\"filename\"><a href=\"" . $this->link() . "\">" . $this->name . "</a></div>\n"; echo " <div class=\"mimetype\">" . $this->mimetype. "</div>\n"; @@ -180,4 +180,4 @@ class Files { } } } -?>
\ No newline at end of file +?> |