added lastUpdated and version to Matrix compare screen
This commit is contained in:
parent
6061dbf1b3
commit
5edad76d21
3 changed files with 26 additions and 7 deletions
|
|
@ -4,7 +4,7 @@ YAHOO.util.Event.addListener(window, "load", function() {
|
|||
var hideStickies = 0;
|
||||
|
||||
this.formatStickied = function(elCell, oRecord, oColumn, sData) {
|
||||
if(oRecord.getData("fieldType") != 'category'){
|
||||
if(!(oRecord.getData("fieldType") in {'category':'','lastUpdated':''})){
|
||||
var innerHTML = "<input type='checkBox' class='stickieCheckbox' id='" + oRecord.getData("attributeId") + "_stickied' name='" + oRecord.getData("attributeId") + "' onChange='setStickied(this)'";
|
||||
if(typeof(oRecord.getData("checked")) != 'undefined' && oRecord.getData("checked") == 'checked'){
|
||||
innerHTML = innerHTML + " checked='checked'";
|
||||
|
|
@ -15,7 +15,7 @@ YAHOO.util.Event.addListener(window, "load", function() {
|
|||
};
|
||||
|
||||
this.formatColors = function(elCell, oRecord, oColumn, sData) {
|
||||
if(oRecord.getData("fieldType") != 'category'){
|
||||
if(!(oRecord.getData("fieldType") in {'category':'','lastUpdated':''})){
|
||||
var colorField = oColumn.key + "_compareColor";
|
||||
var color = oRecord.getData(colorField);
|
||||
if(color){
|
||||
|
|
@ -157,7 +157,7 @@ YAHOO.util.Event.addListener(window, "load", function() {
|
|||
if(hideStickies == 0){
|
||||
// hide non-selected attributes
|
||||
for(i=0; i<elements.length; i++){
|
||||
if(elements[i].getData('fieldType') != 'category'){
|
||||
if(!(elements[i].getData('fieldType') in {'category':'','lastUpdated':''})){
|
||||
var attributeId = elements[i].getData('attributeId');
|
||||
var checkBox = Dom.get(attributeId+"_stickied");
|
||||
if (checkBox.checked == false){
|
||||
|
|
@ -170,7 +170,7 @@ YAHOO.util.Event.addListener(window, "load", function() {
|
|||
}else{
|
||||
// show all attributes
|
||||
for(i=0; i<elements.length; i++){
|
||||
if(elements[i].getData('fieldType') != 'category'){
|
||||
if(!(elements[i].getData('fieldType') in {'category':'','lastUpdated':''})){
|
||||
var attributeId = elements[i].getData('attributeId');
|
||||
var checkBox = Dom.get(attributeId+"_stickied");
|
||||
if (checkBox.checked == false){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue