projects
/
authserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more switching of paths to matomo
[authserver.git]
/
app
/
authsystem.js
diff --git
a/app/authsystem.js
b/app/authsystem.js
index 7a24d84af4b5efde87be187e217d3256c78ffedf..92e3772ad13bdc6723026c21eae000621c616915 100644
(file)
--- a/
app/authsystem.js
+++ b/
app/authsystem.js
@@
-2,7
+2,11
@@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
-window.onload = function() {
+// Call initElements at the earliest possible stage after parsing the document.
+if (window.addEventListener) { window.addEventListener("DOMContentLoaded", initElements, false); }
+else { window.onload = initElements; }
+
+function initElements() {
var jsWarning = document.getElementById("jswarning");
if (jsWarning) {
if (jsWarning.classList) {
var jsWarning = document.getElementById("jswarning");
if (jsWarning) {
if (jsWarning.classList) {
@@
-27,7
+31,7
@@
window.onload = function() {
if (cancelAuth) {
cancelAuth.onclick = function() {
document.getElementById("isauthorized").value = "no";
if (cancelAuth) {
cancelAuth.onclick = function() {
document.getElementById("isauthorized").value = "no";
- document.getElementById("
login
authform").submit();
+ document.getElementById("authform").submit();
}
}
var addAnotherEmail = document.getElementById("addanotheremail");
}
}
var addAnotherEmail = document.getElementById("addanotheremail");