From fabac7b5f2b5da62c92ca07ca3700cde32802809 Mon Sep 17 00:00:00 2001 From: Jon Lambson Date: Wed, 25 Oct 2017 14:39:49 -0600 Subject: [PATCH] fixed some weird hiding and showing --- js/controllers/website-controller.js | 10 ++++++---- templates/website.html | 10 +++++----- templates/widgets/filetree.html | 14 +++++++------- 3 files changed, 18 insertions(+), 16 deletions(-) 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 @@
- +

Invite

@@ -149,7 +149,7 @@
- +

Shares

@@ -157,7 +157,7 @@
- +

Files

@@ -175,7 +175,7 @@
- +

Download

@@ -183,7 +183,7 @@
- +

Delete

diff --git a/templates/widgets/filetree.html b/templates/widgets/filetree.html index e578f91..8814959 100644 --- a/templates/widgets/filetree.html +++ b/templates/widgets/filetree.html @@ -1,7 +1,7 @@
@@ -14,12 +14,12 @@
  • - +
  • - {{ file }}
    + {{ file }}
-
+
@@ -46,7 +46,7 @@
-
+