summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/regform.js1
-rw-r--r--views/song.erb2
2 files changed, 2 insertions, 1 deletions
diff --git a/public/regform.js b/public/regform.js
index bcea7fa..332557d 100644
--- a/public/regform.js
+++ b/public/regform.js
@@ -4,6 +4,7 @@ document.addEventListener("DOMContentLoaded", function() {
};
for (let toggler of document.getElementsByClassName('add-song-button')) {
+ toggler.classList.remove('collapsed');
toggler.onclick = function() {
this.style.display = "none";
let n = toggler.dataset.songNumber;
diff --git a/views/song.erb b/views/song.erb
index 55cf921..f2495d3 100644
--- a/views/song.erb
+++ b/views/song.erb
@@ -1,7 +1,7 @@
<div class="song-info" id="song-<%= song_number %>-info">
<label>
Låt nr. <%= song_number %>
- <button type="button" class="add-song-button" data-song-number="<%= song_number %>">
+ <button type="button" class="add-song-button collapsed" data-song-number="<%= song_number %>">
Legg til...
</button>
</label>