mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Better file deletion confirmation (shows file to be deleted)
This commit is contained in:
@@ -98,14 +98,16 @@
|
||||
|
||||
// Handle Deleting Files
|
||||
function reloadActionDelete () {
|
||||
$('a.delete_file').click(function (e) {
|
||||
$('[data-action="delete_file"]').click(function (e) {
|
||||
e.preventDefault();
|
||||
var clicked = $(this);
|
||||
var deleteItemPath = $(this).attr('href');
|
||||
|
||||
swal({
|
||||
type: 'warning',
|
||||
title: 'Really Delete this File?',
|
||||
title: '',
|
||||
text: 'Are you sure you want to delete <code>' + clicked.data('name') + '</code>?',
|
||||
html: true,
|
||||
showCancelButton: true,
|
||||
showConfirmButton: true,
|
||||
closeOnConfirm: false,
|
||||
|
||||
Reference in New Issue
Block a user