Filemanager cleanup

This commit is contained in:
Dane Everitt 2018-03-08 21:30:07 -06:00
parent 5839034e8f
commit 3a5d21f455
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 58 additions and 33 deletions

View file

@ -145,6 +145,18 @@ p.small {
font-size: 14px !important;
}
.table .min-size {
width:1px;
white-space: nowrap;
}
@media (max-width:767px) {
.box-header > .box-tools {
position: relative !important;
padding: 0px 10px 10px;
}
}
.middle, .align-middle {
vertical-align: middle !important;
}

File diff suppressed because one or more lines are too long

View file

@ -284,7 +284,7 @@ class ActionsClass {
swal({
type: 'warning',
title: '',
text: 'Are you sure you want to delete <code>' + delName + '</code>? There is <strong>no</strong> reversing this action.',
text: 'Are you sure you want to delete <code>' + delName + '</code>?',
html: true,
showCancelButton: true,
showConfirmButton: true,
@ -380,16 +380,22 @@ class ActionsClass {
if (selectedItems.length != 0)
{
let formattedItems = "";
let i = 0;
$.each(selectedItems, function(key, value) {
formattedItems += ("<code>" + value + "</code>, ");
})
formattedItems += ("<code>" + value + "</code>, ");
i++;
return i < 5;
});
formattedItems = formattedItems.slice(0, -2);
if (selectedItems.length > 5) {
formattedItems += ', and ' + (selectedItems.length - 5) + ' other(s)';
}
swal({
type: 'warning',
title: '',
text: 'Are you sure you want to delete:' + formattedItems + '? There is <strong>no</strong> reversing this action.',
text: 'Are you sure you want to delete the following files: ' + formattedItems + '?',
html: true,
showCancelButton: true,
showConfirmButton: true,