mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Patch alt+enter support
This commit is contained in:
parent
b613d2b2dc
commit
3504d5bcad
2 changed files with 3 additions and 1 deletions
|
@ -405,7 +405,7 @@ if($settings->sessionprefix == "auto")
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
/** The version of Pepperminty Wiki currently running. */
|
/** The version of Pepperminty Wiki currently running. */
|
||||||
$version = "v0.17-dev";
|
$version = "v0.17-dev";
|
||||||
$commit = "3581cc1437ab2b9033b10b84e896d829f0234985";
|
$commit = "b613d2b2dcaadbe0795fd610ec536406e2993510";
|
||||||
/// Environment ///
|
/// Environment ///
|
||||||
/** Holds information about the current request environment. */
|
/** Holds information about the current request environment. */
|
||||||
$env = new stdClass();
|
$env = new stdClass();
|
||||||
|
@ -1895,6 +1895,7 @@ window.addEventListener("load", function(event) {
|
||||||
event.target.form.setAttribute("target", "_blank");
|
event.target.form.setAttribute("target", "_blank");
|
||||||
event.target.form.submit();
|
event.target.form.submit();
|
||||||
event.target.form.removeAttribute("target");
|
event.target.form.removeAttribute("target");
|
||||||
|
return false; // Required by some browsers
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
1
core.php
1
core.php
|
@ -1500,6 +1500,7 @@ window.addEventListener("load", function(event) {
|
||||||
event.target.form.setAttribute("target", "_blank");
|
event.target.form.setAttribute("target", "_blank");
|
||||||
event.target.form.submit();
|
event.target.form.submit();
|
||||||
event.target.form.removeAttribute("target");
|
event.target.form.removeAttribute("target");
|
||||||
|
return false; // Required by some browsers
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue