src/main/webapp/js/corpora.js
// update the corpora page with it.
update the corpora page with it.
update the corpora page with it .
function refreshCorporaList() {
		$('#waitDisplay').show();
		$.ajax(blsUrl, {
			'type': 'GET',
			'accept': 'application/json',
			'dataType': 'json',
			'success': function (data) {
				data = $.map(data.indices, normalizeIndexData);
				triggers.updateCorpora(data);
				data
					.filter(function(corpus) { return corpus.status === 'indexing'; })
					.forEach(function(corpus) { refreshIndexStatusWhileIndexing(corpus.id); });
			},
			'error': showXHRError('Could not retrieve corpora'),
			complete: function() {
				$('#waitDisplay').hide();
			}
		});
	}
function refreshCorporaList ( ) { $ ( '#waitDisplay' ) . show ( ) ; $ . ajax ( blsUrl , { 'type' : 'GET' , 'accept' : 'application/json' , 'dataType' : 'json' , 'success' : function ( data ) { data = $ . map ( data . indices , normalizeIndexData ) ; triggers . updateCorpora ( data ) ; data . filter ( function ( corpus ) { return corpus . status === 'indexing' ; } ) . forEach ( function ( corpus ) { refreshIndexStatusWhileIndexing ( corpus . id ) ; } ) ; } , 'error' : showXHRError ( 'Could not retrieve corpora' ) , complete : function ( ) { $ ( '#waitDisplay' ) . hide ( ) ; } } ) ; }
update the corpora page with it.
update the corpora page with it .
// Perform the AJAX request to get the list of corpora.