
2. Removed debug statements from publication sparkline ftl. 3. Reworked publication sparkline & utilities visualziation to ahere to new architecture. 4. Started work on co-authorship freemarkerization. 5. Removed FileResponseValues type per talks with Rebecca Y. & Nick C. 6. Temporarily disabled person grant count visualization (freemarker version).
31 lines
836 B
JavaScript
31 lines
836 B
JavaScript
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
|
|
|
/* Javascript for sparkline visualization on person profile page */
|
|
|
|
var visualization = {
|
|
render: function(url) {
|
|
var containerId = 'vis_container',
|
|
container = $('#' + containerId);
|
|
|
|
//container.empty().html('<img src="${loadingImageLink}" />');
|
|
|
|
$.ajax({
|
|
url: url,
|
|
data: {
|
|
'render_mode': 'dynamic',
|
|
'vis': 'person_pub_count',
|
|
'vis_mode': 'short',
|
|
'container': containerId
|
|
},
|
|
dataType: 'html',
|
|
success:function(data){
|
|
container.html(data);
|
|
}
|
|
});
|
|
}
|
|
};
|
|
|
|
$(document).ready(function() {
|
|
visualizationUrl = visualizationUrl.replace("/visualization", "/visualizationAjax");
|
|
visualization.render(visualizationUrl);
|
|
});
|