in gnm_deliverables/static/gnm_deliverables/naughtylist.js [128:151]
function updateMainTable(){
setLoading();
var since = $('#start-search-date').val();
var until = $('#end-search-date').val();
$.ajax("/deliverables/api/missing?since=" + since + "&until=" + until)
.done(function(data, textStatus, jqXHR){
$.each(data.projects, function(idx, ptr){
var datarow = createDataRow(ptr).appendTo($('#naughtylist-body'));
loadProjectDetails(ptr, datarow);
});
if(data.limited){
$('#limitedtext').text("Your search returned " + data.total + " results, limiting to the first " + data.projects.length + ".");
$('#limitedblock').show();
} else {
$('#limitedblock').hide();
}
clearLoading();
})
.fail(function(jqXHR, textStatus, errorThrown){
console.error(textStatus);
console.error(jqXHR.responseText);
clearLoading();
})
}