removing all debuggers

This commit is contained in:
Jon Lambson 2017-10-25 11:26:42 -06:00
parent f68e126a3b
commit 763c14e77d
1 changed files with 0 additions and 11 deletions

View File

@ -204,7 +204,6 @@ app.controller('websiteCtrl', [
}); });
}; };
vm._uploadFile = function (pkg, opts) { vm._uploadFile = function (pkg, opts) {
debugger;
vm.newFileUploaded = opts.newFile.name; vm.newFileUploaded = opts.newFile.name;
opts.progress = opts.progress || opts; opts.progress = opts.progress || opts;
return pkg.add({ return pkg.add({
@ -225,7 +224,6 @@ app.controller('websiteCtrl', [
, strip: opts.stripZip , strip: opts.stripZip
, path: opts.uploadPath , path: opts.uploadPath
}).then(function (result) { }).then(function (result) {
debugger;
if (result.data.error) { if (result.data.error) {
var msg = vm.newFileUploaded + " has encountered an error. " + result.data.error.message + '.'; var msg = vm.newFileUploaded + " has encountered an error. " + result.data.error.message + '.';
} else { } else {
@ -490,7 +488,6 @@ app.controller('websiteCtrl', [
} }
} }
requestedPath = cleanPathQuery(requestedPath); requestedPath = cleanPathQuery(requestedPath);
debugger;
opts = { opts = {
path: requestedPath path: requestedPath
}; };
@ -498,7 +495,6 @@ app.controller('websiteCtrl', [
}; };
vm.Sites.remove = function (r, opts) { vm.Sites.remove = function (r, opts) {
debugger;
if (!window.confirm("Delete files for this site?")) { if (!window.confirm("Delete files for this site?")) {
return; return;
} }
@ -577,28 +573,22 @@ app.controller('websiteCtrl', [
r.uploadPath = vm.cleanedPath; r.uploadPath = vm.cleanedPath;
} else { } else {
if (!Array.isArray(vm.breadcrumbsPath)) { if (!Array.isArray(vm.breadcrumbsPath)) {
debugger;
vm.breadcrumbsPath = vm.breadcrumbsPath.split('/'); vm.breadcrumbsPath = vm.breadcrumbsPath.split('/');
vm.breadcrumbsPath.pop(); vm.breadcrumbsPath.pop();
} else { } else {
if (vm.breadcrumbsPath[0] !== '') { if (vm.breadcrumbsPath[0] !== '') {
if (r.shareAccess.path !== '/') { if (r.shareAccess.path !== '/') {
r.uploadPath = r.shareAccess.path; r.uploadPath = r.shareAccess.path;
debugger;
} else { } else {
r.uploadPath = r.shareAccess.path; r.uploadPath = r.shareAccess.path;
debugger;
} }
vm.breadcrumbsPath.unshift(''); vm.breadcrumbsPath.unshift('');
debugger;
} }
debugger;
} }
if (vm.breadcrumbsPath.join('/') === '') { if (vm.breadcrumbsPath.join('/') === '') {
} else { } else {
r.uploadPath = vm.breadcrumbsPath.join('/') + '/'; r.uploadPath = vm.breadcrumbsPath.join('/') + '/';
r.uploadPath = cleanPathQuery(r.uploadPath); r.uploadPath = cleanPathQuery(r.uploadPath);
debugger;
} }
} }
vm._uploadFile(pkg, r); vm._uploadFile(pkg, r);
@ -606,7 +596,6 @@ app.controller('websiteCtrl', [
vm.Shares = {}; vm.Shares = {};
vm.Shares.invite = function (r, opts) { vm.Shares.invite = function (r, opts) {
debugger;
var pkg = Auth.oauth3.pkg('www@daplie.com'); var pkg = Auth.oauth3.pkg('www@daplie.com');
return pkg.invite({ return pkg.invite({
comment: r.shareEmail comment: r.shareEmail