|
|
@ -86,7 +86,7 @@ validateInline["user-name"] = function () {
|
|
|
|
validateInline["first-name"] = function () {
|
|
|
|
validateInline["first-name"] = function () {
|
|
|
|
var firstnameInput = $("input#firstname");
|
|
|
|
var firstnameInput = $("input#firstname");
|
|
|
|
if (firstnameInput.val()) {
|
|
|
|
if (firstnameInput.val()) {
|
|
|
|
disableInlineError("firstNameField", "fnError");
|
|
|
|
disableInlineError("firstNameField", "fnError");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
enableInlineError("firstNameField", "fnError");
|
|
|
|
enableInlineError("firstNameField", "fnError");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -161,6 +161,18 @@ function emailIsValid(email) {
|
|
|
|
return regExp.test(email);
|
|
|
|
return regExp.test(email);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
* QR-code generation function.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
function generateQRCode(qrCodeClass) {
|
|
|
|
|
|
|
|
var enrollmentURL = $("#qr-code-modal").data("enrollment-url");
|
|
|
|
|
|
|
|
$(qrCodeClass).qrcode({
|
|
|
|
|
|
|
|
text: enrollmentURL,
|
|
|
|
|
|
|
|
width: 200,
|
|
|
|
|
|
|
|
height: 200
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#userStore").change(
|
|
|
|
$("#userStore").change(
|
|
|
|
function () {
|
|
|
|
function () {
|
|
|
|
var str = "";
|
|
|
|
var str = "";
|
|
|
|