mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 19:41:11 +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]")
|
.querySelectorAll("[data-remove]")
|
||||||
.forEach((node) => node.addEventListener("click", removeInput));
|
.forEach((node) => node.addEventListener("click", removeInput));
|
||||||
|
|
||||||
document
|
document.querySelectorAll("[name='subjects']").forEach((node) =>
|
||||||
.querySelectorAll("[name='subjects']")
|
node.addEventListener("keypress", function (event) {
|
||||||
.forEach((node) => node.addEventListener("keypress",
|
|
||||||
function (event) {
|
|
||||||
if (event.keyCode == 13) {
|
if (event.keyCode == 13) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
))
|
);
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue