Changed comments icons.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8125 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2010-11-10 21:03:38 +00:00
parent 24e984fdc5
commit 6822db7ebb
3 changed files with 6 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1000 B

After

Width:  |  Height:  |  Size: 582 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

View File

@ -1814,7 +1814,7 @@ function loadComments(data) {
var dTable = getNodesDataTable();
// Go through each node
var node, comments, icon, tipID, tip;
var node, comments, icon, iconSrc, tipID, tip;
var rowPos, node, status;
for ( var i in out) {
// out[0][0] = node name and out[0][1] = comments
@ -1823,12 +1823,15 @@ function loadComments(data) {
// If no comments exists, show "no comments"
if (!comments) {
comments = "No comments";
comments = 'No comments';
iconSrc = 'images/ui-icon-no-comment.png';
} else {
iconSrc = 'images/ui-icon-comment.png';
}
// Create comments icon
tipID = node + 'Tip';
icon = $('<img id="' + tipID + '" src="images/ui-icon-comment.png"></img>').css({
icon = $('<img id="' + tipID + '" src="' + iconSrc + '"></img>').css({
'width': '18px',
'height': '18px'
});