diff --git a/backend/static/js/Options.js b/backend/static/js/Options.js index 875c385..30ccdf8 100644 --- a/backend/static/js/Options.js +++ b/backend/static/js/Options.js @@ -16,7 +16,7 @@ export class BooleanOption { } call(value) { - this.callable(value) + this.callable(value === "true" || value === true) } selector() { diff --git a/backend/templates/songs/index.html b/backend/templates/songs/index.html index d21a959..62a1bcf 100644 --- a/backend/templates/songs/index.html +++ b/backend/templates/songs/index.html @@ -170,11 +170,10 @@
<%:author%>
let hidden = false function hideChords(value) { - if (value && !hidden) { + hidden = value + if (value) { $(".chord").hide() - hidden = true } else { - hidden = false $(".chord").show() } }