Fixed IE compatibility

This commit is contained in:
Andreas Stöckel 2011-09-02 16:23:26 +00:00
parent 7457315ea4
commit b99c338511
3 changed files with 5 additions and 5 deletions

View File

@ -227,7 +227,7 @@ var et2_dataview_partitionSpacerNode = et2_dataview_partitionContainerNode.exten
getAvgHeightData: function(_data) {
// Do nothing here, as the spacers should not be inside the average
// height statistic.
},
}
});

View File

@ -519,7 +519,7 @@ var et2_date_ro = et2_valueWidget.extend({
'd': 'days',
'H': 'hours',
'i': 'minutes',
's': 'seconds',
's': 'seconds'
};
var unit2s = {
'Y': 31536000,
@ -527,7 +527,7 @@ var et2_date_ro = et2_valueWidget.extend({
'd': 86400,
'H': 3600,
'i': 60,
's': 1,
's': 1
};
var d = new Date();
var diff = Math.round(d.valueOf() / 1000) - Math.round(this.date.valueOf()/1000);

View File

@ -50,9 +50,9 @@ var et2_image = et2_baseWidget.extend({
this.node = $j(document.createElement("a"));
this.image.appendTo(this.node);
}
if(this.options.class)
if(this.options["class"])
{
this.node.addClass(this.options.class);
this.node.addClass(this.options["class"]);
}
this.setDOMNode(this.node[0]);
},