1. Code cleanup

2. Made changes so that images in IE show up properly & scale properly.
This commit is contained in:
cdtank 2010-07-12 20:27:02 +00:00
parent 616029965d
commit 1ff00fa92f
3 changed files with 13 additions and 235 deletions

View file

@ -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
}
}
}