static/phpc.js
// shows the summary for a particular anchor's url. This will display cached data after the first request
shows the summary for a particular anchor's url. This will display cached data after the first request
shows the summary for a particular anchor ' s url . This will display cached data after the first request
function showSummary(elem, href) {
	if( cache[href] != null ) {
		var data = cache[href];
		setSummaryText(data.title,data.author,data.time,data.body,
				data.category);
		showSummaryDiv(elem);
	}
	else {
		if( activeRequest != null )
			activeRequest.abort();
		activeRequest = $.getJSON(href + "&content=json",
			function(data) {
				cache[href] = data;
				setSummaryText(data.title,data.author,data.time,
					data.body,data.category);
				showSummaryDiv(elem);
				activeRequest = null;
			});
	}	
}
function showSummary ( elem , href ) { if ( cache [ href ] != null ) { var data = cache [ href ] ; setSummaryText ( data . title , data . author , data . time , data . body , data . category ) ; showSummaryDiv ( elem ) ; } else { if ( activeRequest != null ) activeRequest . abort ( ) ; activeRequest = $ . getJSON ( href + "&content=json" , function ( data ) { cache [ href ] = data ; setSummaryText ( data . title , data . author , data . time , data . body , data . category ) ; showSummaryDiv ( elem ) ; activeRequest = null ; } ) ; } }
shows the summary for a particular anchor's url.
shows the summary for a particular anchor ' s url .
// abort any pending requests // get the calendar data