Skip to content

Commit

Permalink
#100 closed: "Class, trait, object and package icon are not avaliable…
Browse files Browse the repository at this point in the history
… at /profile/username"
  • Loading branch information
ignatov committed Aug 1, 2011
1 parent d0e8e04 commit cebc9ad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/webapp/scripts/coprofile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,13 @@ $(document).ready(function() {
$("#profile_tabs").tabs();
$(".profile_form").validate();
$(".change_password_form").validate();
});

replaceIcon("class");
replaceIcon("trait");
replaceIcon("object");
replaceIcon("package");
});

function replaceIcon(type) {
$("img[src$='" + type + ".png']").attr("src", "../lib/" + type + ".png");
}

0 comments on commit cebc9ad

Please sign in to comment.