assets/js/pages/manage.js
// Checks if form elements are left blank, and if so, activates the Information tab
Checks if form elements are left blank, and if so, activates the Information tab
Checks if form elements are left blank and if so activates the Information tab
function validate() {
    var nameVal = document.getElementById("personName").value;
    if (!nameVal) {
        $('.nav-tabs a[href="#cover"]').tab('show');
        return false;
    }
    return true;
}
function validate ( ) { var nameVal = document . getElementById ( "personName" ) . value ; if ( ! nameVal ) { $ ( '.nav-tabs a[href="#cover"]' ) . tab ( 'show' ) ; return false ; } return true ; }
Checks if form elements are left blank, and if so, activates the Information tab
Checks if form elements are left blank and if so activates the Information tab