mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
ALPHA 3.0.2a
This commit is contained in:
29
public/assets/admin/assets/js/user.js
vendored
Normal file
29
public/assets/admin/assets/js/user.js
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
function checkPassword() {
|
||||
var psw = document.getElementById("psw");
|
||||
var pswc = document.getElementById("pswc");
|
||||
var psw_alert = document.getElementById("psw_alert");
|
||||
var submit = document.getElementById("submit");
|
||||
|
||||
if (psw.value == pswc.value) {
|
||||
psw_alert.style.display = "none";
|
||||
submit.removeAttribute("disabled");
|
||||
} else {
|
||||
psw_alert.style.display = "block";
|
||||
submit.setAttribute("disabled", "disabled");
|
||||
}
|
||||
}
|
||||
|
||||
function checkEmail() {
|
||||
var email = document.getElementById("email");
|
||||
var emailc = document.getElementById("emailc");
|
||||
var email_alert = document.getElementById("email_alert");
|
||||
var submit = document.getElementById("submit");
|
||||
|
||||
if (email.value == emailc.value) {
|
||||
email_alert.style.display = "none";
|
||||
submit.removeAttribute("disabled");
|
||||
} else {
|
||||
email_alert.style.display = "block";
|
||||
submit.setAttribute("disabled", "disabled");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user