function initializeFormValidation( ) {
		
		var fieldVals = { };
		
		fieldVals['permissionName'] = {
			validators: {
				notEmpty: {
					message: 'You must enter a permission name'
				}
			}
		};
		
		fieldVals['permissionDesc'] = {
			validators: {
				notEmpty: {
					message: 'You must enter a permission description'
				}
			}
		};
		
		fieldVals['permissionCategory'] = {
			validators: {
				notEmpty: {
					message: 'You must enter a permission category'
				}
			}
		};
			
		$("#addPermissionForm").formValidation({
			framework: 'bootstrap',
			fields: fieldVals
		}).on( 'success.form.fv', function( e ) {
			e.preventDefault( );
			
			var $form = $(e.target),
				fv = $(e.target).data( 'formValidation' );
			
			submitAddNewPermission( );
				
		});
	}
/**
	 * Setup the validation for the add new permission form
	 */
Setup the validation for the add new permission form
Setup the validation for the add new permission form
function initializeFormValidation( ) {
		var fieldVals = { };
		fieldVals['permissionName'] = {
			validators: {
				notEmpty: {
					message: 'You must enter a permission name'
				}
			}
		};
		fieldVals['permissionDesc'] = {
			validators: {
				notEmpty: {
					message: 'You must enter a permission description'
				}
			}
		};
		fieldVals['permissionCategory'] = {
			validators: {
				notEmpty: {
					message: 'You must enter a permission category'
				}
			}
		};
		$("#addPermissionForm").formValidation({
			framework: 'bootstrap',
			fields: fieldVals
		}).on( 'success.form.fv', function( e ) {
			e.preventDefault( );
			var $form = $(e.target),
				fv = $(e.target).data( 'formValidation' );
			submitAddNewPermission( );
		});
	}
function initializeFormValidation ( ) { var fieldVals = { } ; fieldVals [ 'permissionName' ] = { validators : { notEmpty : { message : 'You must enter a permission name' } } } ; fieldVals [ 'permissionDesc' ] = { validators : { notEmpty : { message : 'You must enter a permission description' } } } ; fieldVals [ 'permissionCategory' ] = { validators : { notEmpty : { message : 'You must enter a permission category' } } } ; $ ( "#addPermissionForm" ) . formValidation ( { framework : 'bootstrap' , fields : fieldVals } ) . on ( 'success.form.fv' , function ( e ) { e . preventDefault ( ) ; var $form = $ ( e . target ) , fv = $ ( e . target ) . data ( 'formValidation' ) ; submitAddNewPermission ( ) ; } ) ; }
Setup the validation for the add new permission form
Setup the validation for the add new permission form