1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-29 06:23:01 +00:00

Bugfix: Reset target attribute after submitting form with Alt + Enter

This commit is contained in:
Starbeamrainbowlabs 2016-11-20 13:32:49 +00:00
parent 46e89762af
commit e45e956301
2 changed files with 2 additions and 0 deletions

View file

@ -1429,6 +1429,7 @@ window.addEventListener("load", function(event) {
if(event.keyCode == 13 && event.altKey) {
event.target.form.setAttribute("target", "_blank");
event.target.form.submit();
event.target.form.removeAttribute("target");
}
});
});

View file

@ -1119,6 +1119,7 @@ window.addEventListener("load", function(event) {
if(event.keyCode == 13 && event.altKey) {
event.target.form.setAttribute("target", "_blank");
event.target.form.submit();
event.target.form.removeAttribute("target");
}
});
});