Browse Source

Made that an ID

Pitu 7 years ago
parent
commit
2a978df1a7
2 changed files with 2 additions and 2 deletions
  1. 1 1
      pages/home.html
  2. 1 1
      public/js/home.js

+ 1 - 1
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>

+ 1 - 1
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;