mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
Bugfix: Reset target attribute after submitting form with Alt + Enter
This commit is contained in:
parent
46e89762af
commit
e45e956301
2 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
1
core.php
1
core.php
|
@ -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");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue