Skip to content

Commit

Permalink
Use none class instead of hidden for meta buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Ericson committed Mar 30, 2021
1 parent 49d7563 commit da07245
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</div>
<div id="load_save" class="main_buttons"><!--style="position:fixed; bottom:0; z-index:2"-->
<div id="player"></div>
<div id="meta_buttons" class="hidden">
<div id="meta_buttons" class="none">
<input type="button" class="metarelationbutton" id="custommetarelationbutton" value="Add metarelation with custom type:" onclick="do_metarelation($('#meta_custom_type')[0].value, arg)" >
<input type="text" id="meta_custom_type" onfocus="texton()" onblur="textoff()">
</div>
Expand Down
4 changes: 2 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ function toggle_he_selected(selecting) {
button.setAttribute("value",val.replace("Set to","Add"));
});
if(selecting)
document.getElementById("meta_buttons").classList.add("hidden");
document.getElementById("meta_buttons").classList.remove("none");
else
document.getElementById("meta_buttons").classList.remove("hidden");
document.getElementById("meta_buttons").classList.add("none");
}

// Toggle if a thing (for now: note or relation) is selected or not.
Expand Down

0 comments on commit da07245

Please sign in to comment.