diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-10-08 12:37:00 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-10-08 12:37:00 +0200 |
| commit | c9a79627f38bfa7ea2d2790b8b0463d3271d1d5f (patch) | |
| tree | f011bbf204d90fadda43125c60ea68f25aa8d2f8 /addons/web/controllers/main.py | |
| parent | c7bf6a6dfd8cd919c5a52c572d75ce3f472dfcf7 (diff) | |
[IMP] added code to download google frame
bzr revid: nicolas.vanhoren@openerp.com-20121008103700-8glev3xtzyue7for
Diffstat (limited to 'addons/web/controllers/main.py')
| -rw-r--r-- | addons/web/controllers/main.py | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index d93aef6526c..85e9bc076be 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -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> """ |
