Always use underscores in html ids

Plus some other shifting around
This commit is contained in:
Mouse Reeve
2021-08-08 18:40:47 -07:00
parent 65e982e35b
commit 21a954c7df
78 changed files with 555 additions and 409 deletions

View File

@ -164,7 +164,7 @@ let BookWyrm = new class {
}
// Show/hide container.
let container = document.getElementById('hide-' + targetId);
let container = document.getElementById('hide_' + targetId);
if (container) {
this.toggleContainer(container, pressed);
@ -219,7 +219,7 @@ let BookWyrm = new class {
/**
* Check or uncheck a checbox.
*
* @param {object} checkbox - DOM node
* @param {string} checkbox - id of the checkbox
* @param {boolean} pressed - Is the trigger pressed?
* @return {undefined}
*/