[FIX] un-nivity call of WebClient, IE8 does not like nobody to mess with its body:

bzr revid: xmo@openerp.com-20120117140213-u2n1l4cg1nz1xrea
This commit is contained in:
Xavier Morel
2012-01-17 15:02:13 +01:00
parent 7d305cbbee
commit aeebcf3dcc
2 changed files with 3 additions and 7 deletions
+2 -2
View File
@@ -99,7 +99,7 @@ html_template = """<!DOCTYPE html>
});
</script>
</head>
<body></body>
<body class="openerp" id="oe"></body>
</html>
"""
@@ -207,7 +207,7 @@ class WebClient(openerpweb.Controller):
'js': js,
'css': css,
'modules': simplejson.dumps(self.server_wide_modules(req)),
'init': 'new s.web.WebClient().replace($("body"));',
'init': 'new s.web.WebClient().start();',
}
return r
+1 -5
View File
@@ -1062,13 +1062,9 @@ openerp.web.WebClient = openerp.web.Widget.extend(/** @lends openerp.web.WebClie
this._current_state = null;
},
render_element: function() {
this.$element = $('<body/>');
this.$element.attr("id", "oe");
this.$element.addClass("openerp");
},
start: function() {
var self = this;
this.$element = $(document.body);
if (jQuery.param != undefined && jQuery.deparam(jQuery.param.querystring()).kitten != undefined) {
this.$element.addClass("kitten-mode-activated");
this.$element.delegate('img.oe-record-edit-link-img', 'hover', function(e) {