GoalModelEditor/FrontEnd/public/js/register.js
/**
 * Function for error message customization when username exists
 *
 */
Function for error message customization when username exists
Function for error message customization when username exists
function usernameExistHandler() {
    username = $("#username").val();
    $("#username").attr("data-validation-error-msg", "User name already exists. Please choose another one");
    $("#username").focus();
    $("#password").focus();
    $("#username").focus();
    $("#username").attr("data-validation-error-msg", "Please enter an alphanumeric value (3-12 characters)");
}
function usernameExistHandler ( ) { username = $ ( "#username" ) . val ( ) ; $ ( "#username" ) . attr ( "data-validation-error-msg" , "User name already exists. Please choose another one" ) ; $ ( "#username" ) . focus ( ) ; $ ( "#password" ) . focus ( ) ; $ ( "#username" ) . focus ( ) ; $ ( "#username" ) . attr ( "data-validation-error-msg" , "Please enter an alphanumeric value (3-12 characters)" ) ; }
Function for error message customization when username exists
Function for error message customization when username exists