From af8147fc95cd35e68f35c8d83fa5836f97134cbb Mon Sep 17 00:00:00 2001 From: Kersten Jeremy Date: Tue, 18 Mar 2014 14:06:55 +0100 Subject: [PATCH 1/2] [FIX] Display placeholder on IE9. The hack was not working since we migrate jQuery 1.8 to 1.9 because $.browser has been removed. bzr revid: jke@openerp.com-20140318130655-yqgj851enc0293hr --- addons/web/static/src/js/view_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 3dc148bc7c1..5e68a71022b 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -2253,7 +2253,7 @@ instance.web.form.ReinitializeFieldMixin = _.extend({}, instance.web.form.Reini /** Some hack to make placeholders work in ie9. */ -if ($.browser.msie && $.browser.version === "9.0") { +if (!('placeholder' in document.createElement('input'))) { document.addEventListener("DOMNodeInserted",function(event){ var nodename = event.target.nodeName.toLowerCase(); if ( nodename === "input" || nodename == "textarea" ) { From 9d65ff69dab89198e551fbeff94bed7ca86f933b Mon Sep 17 00:00:00 2001 From: Kersten Jeremy Date: Tue, 18 Mar 2014 16:00:59 +0100 Subject: [PATCH 2/2] [FIX] Hack css for graph view The best way will be to set svg height, but IE9 does not understand height="xxx". So we override the overflow set by bootstrap.css to fix it. bzr revid: jke@openerp.com-20140318150059-nd6bdd58uvr1s4um --- addons/web_graph/static/src/css/graph.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/addons/web_graph/static/src/css/graph.css b/addons/web_graph/static/src/css/graph.css index 1949028d6d8..25ee5db9594 100644 --- a/addons/web_graph/static/src/css/graph.css +++ b/addons/web_graph/static/src/css/graph.css @@ -1,3 +1,11 @@ + /* + This is a hack for IE9 ... + Attrs : width and height are not take in consideration + */ +.openerp svg:not(:root) { + overflow: visible; +} + .graph_pivot_mode { position:initial; }