Made that an ID

This commit is contained in:
Pitu 2017-04-27 04:47:08 -03:00
parent dca43e948e
commit 2a978df1a7
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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;