fixed crumbs

This commit is contained in:
Jon Lambson 2017-10-26 16:50:36 -06:00
parent 2579370bae
commit 1b65c78093
1 changed files with 0 additions and 12 deletions

View File

@ -488,7 +488,6 @@ app.controller('websiteCtrl', [
vm.Sites.contents(vm.copyR, vm.breadcrumbsPath.join('/')); vm.Sites.contents(vm.copyR, vm.breadcrumbsPath.join('/'));
} }
vm.currentFolder = vm.breadcrumbs[vm.breadcrumbs.length - 1]; vm.currentFolder = vm.breadcrumbs[vm.breadcrumbs.length - 1];
console.log(vm.breadcrumbsPath.join('/'));
}; };
vm.removeAllFiles = function (r, opts) { vm.removeAllFiles = function (r, opts) {
@ -560,11 +559,6 @@ app.controller('websiteCtrl', [
var msg = "'"+ vm.pathRemoved + "'" + ' has been removed.'; var msg = "'"+ vm.pathRemoved + "'" + ' has been removed.';
vm.buildNotification(result, msg); vm.buildNotification(result, msg);
if (deletedFolder) { if (deletedFolder) {
var removeFolder = vm.previousSearchQuery.split('/');
removeFolder.pop();
vm.previousSearchQuery = removeFolder.join('/');
vm.breadcrumbs.pop();
vm.breadcrumbsPath.pop();
vm.Sites.contents(vm.copyR, vm.previousSearchQuery); vm.Sites.contents(vm.copyR, vm.previousSearchQuery);
} else { } else {
vm.Sites.contents(vm.copyR, vm.previousSearchQuery); vm.Sites.contents(vm.copyR, vm.previousSearchQuery);
@ -588,12 +582,6 @@ app.controller('websiteCtrl', [
}); });
}; };
var doIT = function () {
r.shareAccess.write = true;
r.shareAccess.read = true;
r.shareAccess.invite = true;
};
vm.shareFolderFrom = function (r, opts) { vm.shareFolderFrom = function (r, opts) {
var sharePath; var sharePath;
if (vm.breadcrumbsPath.join('/') === '' && vm.breadcrumbs.join('/') === '') { if (vm.breadcrumbsPath.join('/') === '' && vm.breadcrumbs.join('/') === '') {