1. Made style changes for the indivudal page in the sparkline visualization section.

2. Moved co-author n/w link from publication sparkline template to indiv*-sparkline*.ftl
This commit is contained in:
cdtank 2011-01-04 18:08:21 +00:00
parent fe193eb1df
commit a127d6337d
4 changed files with 60 additions and 68 deletions

View file

@ -8,8 +8,6 @@ var visualization = {
var containerIdCoAuthor = 'vis_container_coauthor',
containerCoAuthor = $('#' + containerIdCoAuthor);
//container.empty().html('<img src="${loadingImageLink}" />');
$.ajax({
url: url,
data: {
@ -20,17 +18,20 @@ var visualization = {
},
dataType: 'html',
success:function(data){
containerCoAuthor.html(data);
containerCoAuthor.children("#pub_count_short_sparkline_vis").append(coAuthorIcon);
/* containerCoAuthor.find("<img>").css("float", "left"); */
if ($.trim(data) != "") {
containerCoAuthor.html(data);
containerCoAuthor.children("#pub_count_short_sparkline_vis");
/* Since there are publications there are chances that there will be co-authors as well, so show the
* co-author network icon.*/
$("#coauthorship_link_container").show();
}
}
});
}
};
$(document).ready(function() {
visualizationUrl = visualizationUrl.replace("/visualization", "/visualizationAjax");
visualization.renderCoAuthor(visualizationUrl);
});
});