function initializeFormValidation( ) {
		
		var fieldVals = { };
		
		fieldVals['groupName'] = {
			validators: {
				notEmpty: {
					message: 'You must enter a permission name'
				}
			}
		};
		
		fieldVals['groupDesc'] = {
			validators: {
				notEmpty: {
					message: 'You must enter a short description for the group'
				}
			}
		};
		
		fieldVals['groupMembers'] = {
			validators: {
				notEmpty: {
					message: 'You must select at least one member for the group'
				}
			}
		};
			
		$("#addGroupForm").formValidation({
			framework: 'bootstrap',
			fields: fieldVals
		}).on( 'success.form.fv', function( e ) {
			e.preventDefault( );
			
			var $form = $(e.target),
				fv = $(e.target).data( 'formValidation' );
			
			submitAddNewGroup( );
				
		});
	}
/**
	 * 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['groupName'] = {
			validators: {
				notEmpty: {
					message: 'You must enter a permission name'
				}
			}
		};
		fieldVals['groupDesc'] = {
			validators: {
				notEmpty: {
					message: 'You must enter a short description for the group'
				}
			}
		};
		fieldVals['groupMembers'] = {
			validators: {
				notEmpty: {
					message: 'You must select at least one member for the group'
				}
			}
		};
		$("#addGroupForm").formValidation({
			framework: 'bootstrap',
			fields: fieldVals
		}).on( 'success.form.fv', function( e ) {
			e.preventDefault( );
			var $form = $(e.target),
				fv = $(e.target).data( 'formValidation' );
			submitAddNewGroup( );
		});
	}
function initializeFormValidation ( ) { var fieldVals = { } ; fieldVals [ 'groupName' ] = { validators : { notEmpty : { message : 'You must enter a permission name' } } } ; fieldVals [ 'groupDesc' ] = { validators : { notEmpty : { message : 'You must enter a short description for the group' } } } ; fieldVals [ 'groupMembers' ] = { validators : { notEmpty : { message : 'You must select at least one member for the group' } } } ; $ ( "#addGroupForm" ) . formValidation ( { framework : 'bootstrap' , fields : fieldVals } ) . on ( 'success.form.fv' , function ( e ) { e . preventDefault ( ) ; var $form = $ ( e . target ) , fv = $ ( e . target ) . data ( 'formValidation' ) ; submitAddNewGroup ( ) ; } ) ; }
Setup the validation for the add new permission form
Setup the validation for the add new permission form