diff --git a/js/controllers/website-controller.js b/js/controllers/website-controller.js index 3f61081..29c64b2 100644 --- a/js/controllers/website-controller.js +++ b/js/controllers/website-controller.js @@ -227,11 +227,10 @@ app.controller('websiteCtrl', [ if (result.data.error) { var msg = vm.newFileUploaded + " has encountered an error. " + result.data.error.message + '.'; } else { - var msg = vm.newFileUploaded + " has been uploaded"; + var msg = vm.newFileUploaded + " has been uploaded."; } opts.progress.uploadTotal = 0; vm.buildNotification(result, msg); - // window.alert(JSON.stringify(result)); }); }; @@ -246,7 +245,6 @@ app.controller('websiteCtrl', [ var sub; var sld; var tld; - debugger; /* //vm.unlock('webpreneur'); if (!vm.currentFiles || !vm.currentFiles.length) { @@ -392,6 +390,11 @@ app.controller('websiteCtrl', [ return vm.cleanedPath; }; + vm.closeFileUploadsContainers = function () { + vm.uploadFolderContainer = false; + vm.uploadFileContainer = false; + }; + vm.Sites.contents = function (r, dir) { vm.siteFiles = []; vm.siteDirectories = []; @@ -523,7 +526,6 @@ app.controller('websiteCtrl', [ }).then(function (result) { var msg = "'"+ vm.pathRemoved + "'" + ' has been removed'; vm.buildNotification(result, msg); - window.alert(JSON.stringify(result)); }); }; diff --git a/templates/website.html b/templates/website.html index 005c7b7..b84c0da 100644 --- a/templates/website.html +++ b/templates/website.html @@ -141,7 +141,7 @@