1. Refactored some visualziation helper functions spread across different files into one javascript file.
2. Fixed the bug NIHVIVO-1595. Now for https: sites the sparkline visualizations are rendered by generating a chart image url instead of going throught the google visualization API. This image is directly placed in the container. For http sites it follows the old procedure.
This commit is contained in:
parent
5ab3cbce42
commit
c920c84699
14 changed files with 352 additions and 45 deletions
|
@ -82,17 +82,6 @@ function getWellFormedURLs(given_uri, type) {
|
|||
}
|
||||
}
|
||||
|
||||
$.fn.image = function(src, successFunc, failureFunc){
|
||||
return this.each(function(){
|
||||
var profileImage = new Image();
|
||||
profileImage.onerror = failureFunc;
|
||||
profileImage.onload = successFunc;
|
||||
profileImage.src = src;
|
||||
|
||||
return profileImage;
|
||||
});
|
||||
};
|
||||
|
||||
function setProfileImage(imageContainerID, mainImageURL) {
|
||||
|
||||
if (imageContainerID == "") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue