matrix compare screen bugfix

This commit is contained in:
Yung Han Khoe 2008-12-12 16:36:19 +00:00
parent 80d7ac6ae1
commit ba24497686
2 changed files with 12 additions and 2 deletions

View file

@ -1060,7 +1060,12 @@ sub www_getCompareListData {
) });
}
foreach my $result (@results){
unless($result->{fieldType} eq 'category'){
if($result->{fieldType} eq 'category'){
foreach my $columnDef (@columnDefs) {
$result->{$columnDef->{key}} = $columnDef->{label};
}
}
else{
foreach my $listingId (@listingIds) {
$result->{attributeId} =~ s/-/_____/g;
my $listingId_safe = $listingId;

View file

@ -22,13 +22,18 @@ YAHOO.util.Event.addListener(window, "load", function() {
Dom.setStyle(elCell.parentNode, "background-color", color);
}
elCell.innerHTML = sData;
}else{
elCell.innerHTML = sData;
}
};
this.formatLabel = function(elCell, oRecord, oColumn, sData) {
if(oRecord.getData("fieldType") == 'category'){
elCell.innerHTML = "<b>" +sData + "</b>";
}else{
elCell.innerHTML = sData + "<div class='wg-hoverhelp'>" + oRecord.getData("description") +"</div>";
elCell.innerHTML = sData;
if(oRecord.getData("description")){
elCell.innerHTML = elCell.innerHTML + "<div class='wg-hoverhelp'>" + oRecord.getData("description") +"</div>";
}
}
};