mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 09:02:28 +01:00
Fix for mass delete error.
This commit is contained in:
parent
6d01b79372
commit
1d06876f69
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 formattedItems = "";
|
||||||
let i = 0;
|
let i = 0;
|
||||||
|
let self = this;
|
||||||
|
|
||||||
$.each(selectedItems, function(key, value) {
|
$.each(selectedItems, function(key, value) {
|
||||||
formattedItems += ("<code>" + this.sanitizedString(value) + "</code>, ");
|
formattedItems += ("<code>" + self.sanitizedString(value) + "</code>, ");
|
||||||
i++;
|
i++;
|
||||||
return i < 5;
|
return i < 5;
|
||||||
});
|
});
|
||||||
@ -411,7 +413,7 @@ class ActionsClass {
|
|||||||
swal({
|
swal({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
title: '',
|
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,
|
html: true,
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
showConfirmButton: true,
|
showConfirmButton: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user