forked from Alex/Pterodactyl-Panel
Merge pull request #1615 from MatthewSH/hotfix/1614-mass-delete
Fix #1614 for mass delete error
This commit is contained in:
commit
873da44a1e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -397,8 +397,10 @@ class ActionsClass {
|
||||
{
|
||||
let formattedItems = "";
|
||||
let i = 0;
|
||||
let self = this;
|
||||
|
||||
$.each(selectedItems, function(key, value) {
|
||||
formattedItems += ("<code>" + this.sanitizedString(value) + "</code>, ");
|
||||
formattedItems += ("<code>" + self.sanitizedString(value) + "</code>, ");
|
||||
i++;
|
||||
return i < 5;
|
||||
});
|
||||
@ -411,7 +413,7 @@ class ActionsClass {
|
||||
swal({
|
||||
type: 'warning',
|
||||
title: '',
|
||||
text: 'Are you sure you want to delete the following files: ' + this.sanitizedString(formattedItems) + '?',
|
||||
text: 'Are you sure you want to delete the following files: ' + formattedItems + '?',
|
||||
html: true,
|
||||
showCancelButton: true,
|
||||
showConfirmButton: true,
|
||||
|
Loading…
Reference in New Issue
Block a user