1. Code cleanup
2. Made changes so that images in IE show up properly & scale properly.
This commit is contained in:
parent
616029965d
commit
1ff00fa92f
3 changed files with 13 additions and 235 deletions
|
@ -19,7 +19,6 @@ function getWellFormedURLs(given_uri, type) {
|
|||
dataType: "text",
|
||||
async: false,
|
||||
success:function(data){
|
||||
// console.log("COA - " + data);
|
||||
}
|
||||
}).responseText;
|
||||
|
||||
|
@ -73,18 +72,15 @@ function getWellFormedURLs(given_uri, type) {
|
|||
$.fn.image = function(src, successFunc, failureFunc){
|
||||
return this.each(function(){
|
||||
var profileImage = new Image();
|
||||
profileImage.src = src;
|
||||
profileImage.width = 90;
|
||||
profileImage.onerror = failureFunc;
|
||||
profileImage.onload = successFunc;
|
||||
|
||||
profileImage.src = src;
|
||||
|
||||
return profileImage;
|
||||
});
|
||||
};
|
||||
|
||||
function setProfileImage(imageContainerID, rawPath, contextPath) {
|
||||
|
||||
|
||||
if (imageContainerID == "") {
|
||||
return;
|
||||
|
@ -103,7 +99,7 @@ function setProfileImage(imageContainerID, rawPath, contextPath) {
|
|||
imageContainer.empty();
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
|
||||
function setProfileMoniker(monikerContainerID, moniker, doEllipsis) {
|
||||
|
@ -317,4 +313,4 @@ function renderCoAuthorshipVisualization() {
|
|||
document.write(alternateContent); // insert non-flash content
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue