vivo/productMods/js/visualization/sparkline.js
cdtank 06523d402e 1. Changed vis architecture to serve 3 type of responses from 3 corresponding url patterns (standard, ajax, data).
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).
2010-12-16 01:18:39 +00:00

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);
});