Skip to content

Commit

Permalink
Fix Options something calling with wrong value
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Sep 16, 2023
1 parent bc242d6 commit 9001741
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/static/js/Options.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class BooleanOption {
}

call(value) {
this.callable(value)
this.callable(value === "true" || value === true)
}

selector() {
Expand Down
5 changes: 2 additions & 3 deletions backend/templates/songs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,10 @@ <h6 class="d-inline" ><%:author%></h6>

let hidden = false
function hideChords(value) {
if (value && !hidden) {
hidden = value
if (value) {
$(".chord").hide()
hidden = true
} else {
hidden = false
$(".chord").show()
}
}
Expand Down

0 comments on commit 9001741

Please sign in to comment.