mirror of
https://github.com/9001/copyparty.git
synced 2026-01-13 08:12:39 -07:00
Update splash.js
Signed-off-by: ed <s@ocv.me>
This commit is contained in:
parent
292cec5eca
commit
2344dc6c6f
|
|
@ -8,8 +8,8 @@ Ls.eng = {
|
||||||
"ta1": "fill in your new password first",
|
"ta1": "fill in your new password first",
|
||||||
"ta2": "repeat to confirm new password:",
|
"ta2": "repeat to confirm new password:",
|
||||||
"ta3": "found a typo; please try again",
|
"ta3": "found a typo; please try again",
|
||||||
"nop": "please enter a password",
|
"nop": "ERROR: Password cannot be blank",
|
||||||
"nou": "please enter a username and password"
|
"nou": "ERROR: Username and/or password cannot be blank",
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -103,12 +103,11 @@ if (/\&re=/.test('' + location))
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
ebi('lf').onsubmit = function(e) {
|
if (ebi('lf'))
|
||||||
ev(e);
|
ebi('lf').onsubmit = function() {
|
||||||
e.preventDefault();
|
var un = ebi('lu');
|
||||||
let uname = ebi('lu');
|
if (ebi('lp').value && (!un || un.value))
|
||||||
if (ebi('lp').value && (!uname || uname.value))
|
return true;
|
||||||
e.target.submit();
|
ebi('lm').innerHTML = un ? d.nou : d.nop;
|
||||||
else
|
return false;
|
||||||
ebi('lm').innerHTML = uname ? d.nou : d.nop;
|
};
|
||||||
};
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue