src/main/webapp/js/singlepage-interface.js
/**
	 * Show the error reporting field and display any errors that occured when performing a search.
	 *
	 * Can be directly used as callback fuction to $.ajax
	 *
	 * @param {any} jqXHR
	 * @param {any} textStatus
	 * @param {any} errorThrown
	 */
Show the error reporting field and display any errors that occured when performing a search.
Can be directly used as callback fuction to $.ajax


Show the error reporting field and display any errors that occured when performing a search . Can be directly used as callback fuction to $ . ajax
function showBlsError(jqXHR, textStatus, errorThrown) {
		var errordata = (jqXHR && jqXHR.responseJSON && jqXHR.responseJSON.error) || {
			'code': 'WEBSERVICE_ERROR',
			'message': 'Error contacting webservice: ' + textStatus + '; ' + errorThrown
		};
		$('#errorDiv').text(errordata.message + ' (' + errordata.code + ') ').show();
	}
function showBlsError ( jqXHR , textStatus , errorThrown ) { var errordata = ( jqXHR && jqXHR . responseJSON && jqXHR . responseJSON . error ) || { 'code' : 'WEBSERVICE_ERROR' , 'message' : 'Error contacting webservice: ' + textStatus + '; ' + errorThrown } ; $ ( '#errorDiv' ) . text ( errordata . message + ' (' + errordata . code + ') ' ) . show ( ) ; }
Show the error reporting field and display any errors that occured when performing a search.
Show the error reporting field and display any errors that occured when performing a search .