mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 17:41:08 +00:00
./bw-dev prettier
This commit is contained in:
parent
e4892701d8
commit
259ceeea21
1 changed files with 4 additions and 7 deletions
|
@ -47,14 +47,11 @@
|
|||
.querySelectorAll("[data-remove]")
|
||||
.forEach((node) => node.addEventListener("click", removeInput));
|
||||
|
||||
document
|
||||
.querySelectorAll("[name='subjects']")
|
||||
.forEach((node) => node.addEventListener("keypress",
|
||||
function (event) {
|
||||
document.querySelectorAll("[name='subjects']").forEach((node) =>
|
||||
node.addEventListener("keypress", function (event) {
|
||||
if (event.keyCode == 13) {
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
))
|
||||
|
||||
})
|
||||
);
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue