diff options
| author | Onestay <[email protected]> | 2017-04-23 14:09:44 +0200 |
|---|---|---|
| committer | Onestay <[email protected]> | 2017-04-23 14:09:44 +0200 |
| commit | 81f17078351926ed37041bd43d23bea8a79259e1 (patch) | |
| tree | 15c5bc612e647134ebce71923a8913fa40992034 /public/js | |
| parent | Made it so user doesn't need to specify blockedExtensions. (diff) | |
| download | host.fuwn.me-81f17078351926ed37041bd43d23bea8a79259e1.tar.xz host.fuwn.me-81f17078351926ed37041bd43d23bea8a79259e1.zip | |
only display album select when user is logged in
It still needs additional styling and stuff
Diffstat (limited to 'public/js')
| -rw-r--r-- | public/js/home.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/public/js/home.js b/public/js/home.js index 6253c10..a3725e0 100644 --- a/public/js/home.js +++ b/public/js/home.js @@ -16,7 +16,6 @@ upload.checkIfPublic = function(){ return swal("An error ocurred", 'There was an error with the request, please check the console for more information.', "error"); console.log(error); }); - } upload.preparePage = function(){ @@ -61,6 +60,10 @@ upload.verifyToken = function(token, reloadOnError){ } upload.prepareUpload = function(){ + + if (upload.token) { + document.getElementById('albumDiv').style.display = 'block'; + } div = document.createElement('div'); div.id = 'dropzone'; @@ -74,7 +77,7 @@ upload.prepareUpload = function(){ document.getElementById('loginLinkText').innerHTML = 'Create an account and keep track of your uploads'; document.getElementById('uploadContainer').appendChild(div); - + upload.prepareDropzone(); } |