/*********************************************************************************************  

jQuery: 		Remove Link from List Webpart Heading
Filename:		removeListWebpartLink.js
Description: 	This jQuery file will remove the link to a list from the corresponding webpart
				heading on a page.
								
Author: 		Drew Frisk
Version:		v1.0
Created:		8.03.2011
Last Update: 	8.03.2011


******************************************************************************************/


$( document ).ready ( function() {

	// look for all webpart title headings on the page
	$( '.ms-WPTitle' ).each( function() {
		
		// find the anchor tag inside the webpart heading and grab the html inside it
		// set that html to the 'title' variable
		var title = $( this ).find( 'a' ).html();
		
		// if the anchor tag was found, replace the html inside of '.ms-WPTitle' with the html from the anchor tag
		// basically removes the anchor tag from the html
		if( title != null ) {
			$( this ).html( title );
		}
		
	} );	

} );


