[IMP] added a .ie class on <html> when using ie <= 9
authorFrédéric van der Essen <fva@openerp.com>
Thu, 15 Nov 2012 14:30:47 +0000 (15:30 +0100)
committerFrédéric van der Essen <fva@openerp.com>
Thu, 15 Nov 2012 14:30:47 +0000 (15:30 +0100)
bzr revid: fva@openerp.com-20121115143047-utonsnq0iadbvmyt

addons/web/controllers/main.py

index 407b87b..717ede1 100644 (file)
@@ -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" />