From ddff5b8afe18442ebea1e67bd6f77310b5bf9f0f Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 21 Sep 2018 13:34:09 +0200 Subject: Only show add song button if javascript enabled. --- public/regform.js | 1 + views/song.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 @@
-- cgit v1.2.3