Skip to content

Commit

Permalink
Added Additional Delete Link in File Viewer View (#1141)
Browse files Browse the repository at this point in the history
* Added Additional Delete Link in File Viewer View

I found myself clicking into specific files to see them larger, then wanting to delete them, only to find I had to go back to another screen to delete them.

* Changed Reference to Invalid Variable
  • Loading branch information
uwecmyersjj authored Oct 14, 2024
1 parent 1042994 commit 94b6254
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tinyfilemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1835,6 +1835,9 @@ function getSelected($l) {
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>">
<button type="submit" class="btn btn-link text-decoration-none fw-bold p-0"><i class="fa fa-cloud-download"></i> <?php echo lng('Download') ?></button> &nbsp;
</form>
<?php if (!FM_READONLY): ?>
<b class="ms-2"><a title="<?php echo lng('Delete') ?>" href="?p=<?php echo urlencode(FM_PATH) ?>&amp;del=<?php echo urlencode($file) ?>" onclick="confirmDailog(event, 1209, '<?php echo lng('Delete').' '.lng('File'); ?>','<?php echo urlencode($file); ?>', this.href);"> <i class="fa fa-trash-o"></i> Delete</a></b>
<?php endif; ?>
<b class="ms-2"><a href="<?php echo fm_enc($file_url) ?>" target="_blank"><i class="fa fa-external-link-square"></i> <?php echo lng('Open') ?></a></b>
<?php
// ZIP actions
Expand Down

0 comments on commit 94b6254

Please sign in to comment.