[IMP] added code to download google frame
authorniv-openerp <nicolas.vanhoren@openerp.com>
Mon, 8 Oct 2012 10:37:00 +0000 (12:37 +0200)
committerniv-openerp <nicolas.vanhoren@openerp.com>
Mon, 8 Oct 2012 10:37:00 +0000 (12:37 +0200)
bzr revid: nicolas.vanhoren@openerp.com-20121008103700-8glev3xtzyue7for

README.web
addons/web/controllers/main.py

index 72393ba..4c84cef 100644 (file)
@@ -1,6 +1,13 @@
 OpenERP Web
 -----------
 
+The OpenERP Web Client supports the following web browsers:
+
+* Internet Explorer 9+
+* Google Chrome 22+
+* Firefox 13+
+* Any browser using the latest version of Chrome Frame
+
 To build the documentation use:
 
 $ make doc
index d93aef6..85e9bc0 100644 (file)
@@ -568,7 +568,27 @@ html_template = """<!DOCTYPE html>
             });
         </script>
     </head>
-    <body></body>
+    <body>
+        <!--[if lte IE 8]>
+        <script type="text/javascript" 
+            src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
+        <script>
+            var test = function() {
+                CFInstall.check({
+                    mode: "overlay"
+                });
+            };
+            if (window.localStorage && false) {
+                if (! localStorage.getItem("hasShownGFramePopup")) {
+                    test();
+                    localStorage.setItem("hasShownGFramePopup", true);
+                }
+            } else {
+                test();
+            }
+        </script>
+        <![endif]-->
+    </body>
 </html>
 """