Fix for mass delete error.

This commit is contained in:
Matthew Hatcher 2019-06-22 22:51:14 -04:00
parent 6d01b79372
commit 1d06876f69
No known key found for this signature in database
GPG key ID: 5CBFA82270D78FD1
3 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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,