[views] #343641: fix calendar with IE6/7 stable
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Wed, 02 Sep 2009 10:40:43 +0200
branchstable
changeset 3096 8ee9529d8367
parent 3095 804313942724
child 3097 a7adeca85656
[views] #343641: fix calendar with IE6/7
web/data/cubicweb.calendar.js
web/data/cubicweb.compat.js
--- a/web/data/cubicweb.calendar.js	Wed Sep 02 10:40:16 2009 +0200
+++ b/web/data/cubicweb.calendar.js	Wed Sep 02 10:40:43 2009 +0200
@@ -112,7 +112,8 @@
 	this.domtable = TABLE({'class': this.cssclass},
 			      THEAD(null, TR(null,
 					     TH(null, A({'href' : prevlink}, "<<")),
-					     TH({'colspan' : 5, 'style' : "text-align: center;"}, monthname),
+					     // IE 6/7 requires colSpan instead of colspan
+					     TH({'colSpan': 5, 'colspan':5, 'style' : "text-align: center;"}, monthname),
 					     TH(null, A({'href' : nextlink}, ">>")))),
 			      TBODY(null,
 				    this._headdisplay(),
--- a/web/data/cubicweb.compat.js	Wed Sep 02 10:40:16 2009 +0200
+++ b/web/data/cubicweb.compat.js	Wed Sep 02 10:40:43 2009 +0200
@@ -172,7 +172,7 @@
 		}
 		node[key] = value;
 	    } else { // normal node attribute
-		node.setAttribute(key, params[key]);
+		jQuery(node).attr(key, params[key]);
 	    }
 	}
 	if (children) {