matrix bug fixes
This commit is contained in:
parent
8fa164200a
commit
80d7ac6ae1
4 changed files with 16 additions and 6 deletions
|
|
@ -81,7 +81,7 @@ YAHOO.util.Event.addListener(window, "load", function() {
|
|||
|
||||
for (var i = 0; i < len; i++) {
|
||||
var c = oFullResponse.ColumnDefs[i];
|
||||
oFullResponse.ColumnDefs[i].label = oFullResponse.ColumnDefs[i].label + "<a href='javascript:removeListing(\""+oFullResponse.ColumnDefs[i].key+"\")'><img src='/extras/toolbar/bullet/delete.gif' border='0'></a>"
|
||||
oFullResponse.ColumnDefs[i].label = "<a href='"+ oFullResponse.ColumnDefs[i].url +"'>" + oFullResponse.ColumnDefs[i].label + "</a> <a href='javascript:removeListing(\""+oFullResponse.ColumnDefs[i].key+"\")'><img src='/extras/toolbar/bullet/delete.gif' border='0'></a>"
|
||||
myDataTable.insertColumn(c);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,11 +20,19 @@ YAHOO.util.Event.addListener(window, "load", function() {
|
|||
elCell.innerHTML = sData + "<div class='wg-hoverhelp'>" + oRecord.getData("description") +"</div>";
|
||||
}
|
||||
};
|
||||
|
||||
this.formatColors = function(elCell, oRecord, oColumn, sData) {
|
||||
if(oRecord.getData("fieldType") != 'category'){
|
||||
var color = oRecord.getData("compareColor");
|
||||
if(color){
|
||||
Dom.setStyle(elCell.parentNode, "background-color", color);
|
||||
}
|
||||
elCell.innerHTML = sData;
|
||||
}
|
||||
};
|
||||
var myColumnDefs = [
|
||||
{key:"stickied",formatter:this.formatStickied,label:""},
|
||||
{key:"label",formatter:this.formatLabel,label:""},
|
||||
{key:"value",label:""}
|
||||
{key:"value",label:"",formatter:this.formatColors}
|
||||
];
|
||||
|
||||
this.myDataSource = new YAHOO.util.DataSource("?");
|
||||
|
|
@ -32,7 +40,7 @@ YAHOO.util.Event.addListener(window, "load", function() {
|
|||
this.myDataSource.connXhrMode = "queueRequests";
|
||||
this.myDataSource.responseSchema = {
|
||||
resultsList: "ResultSet.Result",
|
||||
fields: ["label","value","attributeId","fieldType","checked","description"]
|
||||
fields: ["label","value","attributeId","fieldType","checked","description","compareColor"]
|
||||
};
|
||||
|
||||
var uri = "func=getAttributes";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue