diff --git a/resources/views/server/files/index.blade.php b/resources/views/server/files/index.blade.php
index 35bf10213..08db97803 100644
--- a/resources/views/server/files/index.blade.php
+++ b/resources/views/server/files/index.blade.php
@@ -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 ' + clicked.data('name') + '
?',
+ html: true,
showCancelButton: true,
showConfirmButton: true,
closeOnConfirm: false,
diff --git a/resources/views/server/files/list.blade.php b/resources/views/server/files/list.blade.php
index 82e797b89..e7d12a16c 100644
--- a/resources/views/server/files/list.blade.php
+++ b/resources/views/server/files/list.blade.php
@@ -60,7 +60,7 @@