summaryrefslogtreecommitdiff
path: root/addons/web/controllers/main.py
diff options
context:
space:
mode:
authorFrédéric van der Essen <fva@openerp.com>2012-11-15 15:30:47 +0100
committerFrédéric van der Essen <fva@openerp.com>2012-11-15 15:30:47 +0100
commitb7bb7e624639c7be098ecb19d09ab4d9a50f4af5 (patch)
tree0528d07794a69c538952f109048e66b191aa5402 /addons/web/controllers/main.py
parent6fd4765e0758a1566155de9e5fb762252b7d091c (diff)
[IMP] added a .ie class on <html> when using ie <= 9
bzr revid: fva@openerp.com-20121115143047-utonsnq0iadbvmyt
Diffstat (limited to 'addons/web/controllers/main.py')
-rw-r--r--addons/web/controllers/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 407b87b6ab1..717ede144eb 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -545,7 +545,8 @@ def content_disposition(filename, req):
#----------------------------------------------------------
html_template = """<!DOCTYPE html>
-<html style="height: 100%%">
+<!--[if lte IE 9]> <html style='height: 100%%' class='ie'> <![endif]-->
+<!--[if (gt IE 9)|!(IE)]><!--> <html style='height: 100%%' class=''> <!--<![endif]-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />