Advertisement
Guest User

app.js

a guest
Nov 11th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Custom JS
  2. $(document).ready(function() {
  3.  
  4.   // MDB select initialization
  5.   // $('.mdb-select').material_select();
  6.  
  7.   // Form Validation Settings
  8.   // Login form Settings
  9.   $('#loginForm').formValidation({
  10.     framework: 'bootstrap4',
  11.     excluded: ':disabled',
  12.     icon: {
  13.       valid: 'fa fa-check',
  14.       invalid: 'fa fa-times',
  15.       validating: 'fa fa-refresh'
  16.     },
  17.     fields: {
  18.         email: {
  19.             validators: {
  20.                 notEmpty: {
  21.                     message: 'The username is required'
  22.                 },
  23.                 emailAddress: {
  24.                     message: 'The username must be more than 6 and less than 30 characters long'
  25.                 },
  26.             }
  27.         },
  28.         password: {
  29.             validators: {
  30.                 notEmpty: {
  31.                     message: 'The password is required'
  32.                 }
  33.             }
  34.         }
  35.     }
  36.   });
  37. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement