ability to delete file/folder

This commit is contained in:
Jon Lambson 2017-10-02 16:57:46 -06:00
parent fdc993f7b3
commit d530a898d6
1 changed files with 6 additions and 1 deletions

View File

@ -380,7 +380,12 @@ app.controller('websiteCtrl', [
}
} else {
confirmMessage = "Delete all items in this folder?";
opts.path = vm.autoPopulateWebPath + path;
if (vm.autoPopulateWebPath === undefined) {
opts.path = path;
} else {
opts.path = vm.autoPopulateWebPath + path;
}
opts.confirm = true;
}
if (!window.confirm(confirmMessage)) {
return;