matrix compare screen bugfix
This commit is contained in:
parent
80d7ac6ae1
commit
ba24497686
2 changed files with 12 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue