function initializeGroupOptions( datatable ) {
		
		$(".datatableBlock").on( "click", ".deleteGroup", function( ) {
			
			var currentClick = $(this);
			var submitSet = { };
			
			submitSet['groupID'] = $(this).attr( "data-groupid" );
			submitSet['adminTool'] = "groupDelete";
			
			//Convert to JSON
			submitSet = JSON.stringify( submitSet );
		
			$.ajax({
				url: baseURL + 'scripts/adminTools.php',
				type: 'POST',
				data: { 'expData': submitSet}, 
				dataType: 'json'
			}).done( function( results ) {
				
				if( results['STATUS'] == "SUCCESS" ) {
					alertify.success( results['MESSAGE'] );
					datatable.draw( false );
				} else {
					alertify.error( results['MESSAGE'] );
				}
				
			});
		});
		
	}
/**
	 * Setup the functionality of the group icons
	 */
Setup the functionality of the group icons
Setup the functionality of the group icons
function initializeGroupOptions( datatable ) {
		$(".datatableBlock").on( "click", ".deleteGroup", function( ) {
			var currentClick = $(this);
			var submitSet = { };
			submitSet['groupID'] = $(this).attr( "data-groupid" );
			submitSet['adminTool'] = "groupDelete";
			submitSet = JSON.stringify( submitSet );
			$.ajax({
				url: baseURL + 'scripts/adminTools.php',
				type: 'POST',
				data: { 'expData': submitSet}, 
				dataType: 'json'
			}).done( function( results ) {
				if( results['STATUS'] == "SUCCESS" ) {
					alertify.success( results['MESSAGE'] );
					datatable.draw( false );
				} else {
					alertify.error( results['MESSAGE'] );
				}
			});
		});
	}
function initializeGroupOptions ( datatable ) { $ ( ".datatableBlock" ) . on ( "click" , ".deleteGroup" , function ( ) { var currentClick = $ ( this ) ; var submitSet = { } ; submitSet [ 'groupID' ] = $ ( this ) . attr ( "data-groupid" ) ; submitSet [ 'adminTool' ] = "groupDelete" ; submitSet = JSON . stringify ( submitSet ) ; $ . ajax ( { url : baseURL + 'scripts/adminTools.php' , type : 'POST' , data : { 'expData' : submitSet } , dataType : 'json' } ) . done ( function ( results ) { if ( results [ 'STATUS' ] == "SUCCESS" ) { alertify . success ( results [ 'MESSAGE' ] ) ; datatable . draw ( false ) ; } else { alertify . error ( results [ 'MESSAGE' ] ) ; } } ) ; } ) ; }
Setup the functionality of the group icons
Setup the functionality of the group icons
//Convert to JSON