aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPitu <[email protected]>2017-04-27 04:47:08 -0300
committerPitu <[email protected]>2017-04-27 04:47:08 -0300
commit2a978df1a7ab6bb5fbb4f6e9b6bd00cc515e3143 (patch)
tree1f61f4068cd077097b72ccaf24956d742386d935
parentDerp (diff)
downloadhost.fuwn.me-2a978df1a7ab6bb5fbb4f6e9b6bd00cc515e3143.tar.xz
host.fuwn.me-2a978df1a7ab6bb5fbb4f6e9b6bd00cc515e3143.zip
Made that an ID
-rw-r--r--pages/home.html2
-rw-r--r--public/js/home.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/pages/home.html b/pages/home.html
index df9ec1e..d9376cb 100644
--- a/pages/home.html
+++ b/pages/home.html
@@ -58,7 +58,7 @@
<div class="field" id="albumDiv" style="display: none">
<p class="control select-wrapper">
<span class="select">
- <select>
+ <select id="albumSelect">
<option value="">Upload to album</option>
</select>
</span>
diff --git a/public/js/home.js b/public/js/home.js
index b71943b..2ec27e7 100644
--- a/public/js/home.js
+++ b/public/js/home.js
@@ -63,7 +63,7 @@ upload.verifyToken = function(token, reloadOnError){
upload.prepareUpload = function(){
// I think this fits best here because we need to check for a valid token before we can get the albums
if (upload.token) {
- var select = document.querySelector('select');
+ var select = document.getElementById('albumSelect');
select.addEventListener('change', function() {
upload.album = select.value;