[imp] put openerp into body

bzr revid: nicolas.vanhoren@openerp.com-20120217110152-x66rfhyfkqao04k0
This commit is contained in:
niv-openerp 2012-02-17 12:01:52 +01:00
parent 39d514678c
commit feaade623a
3 changed files with 7 additions and 4 deletions

View File

@ -104,12 +104,11 @@ html_template = """<!DOCTYPE html>
$(function() {
var s = new openerp.init(%(modules)s);
var wc = new s.web.WebClient();
wc.$element = $(document.body);
wc.start();
wc.appendTo($(document.body));
});
</script>
</head>
<body class="openerp" id="oe"></body>
<body></body>
</html>
"""

View File

@ -1,7 +1,8 @@
body.openerp {
body {
padding: 0;
margin: 0;
overflow-y: scroll;
height: 100%;
}
.openerp {
padding: 0;

View File

@ -1073,6 +1073,9 @@ openerp.web.WebClient = openerp.web.OldWidget.extend(/** @lends openerp.web.WebC
this._current_state = null;
},
render_element: function() {
this.$element.addClass("openerp");
},
start: function() {
var self = this;
if (jQuery.param != undefined && jQuery.deparam(jQuery.param.querystring()).kitten != undefined) {