[imp] put openerp into body
bzr revid: nicolas.vanhoren@openerp.com-20120217110152-x66rfhyfkqao04k0
This commit is contained in:
parent
39d514678c
commit
feaade623a
|
@ -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>
|
||||
"""
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
body.openerp {
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
overflow-y: scroll;
|
||||
height: 100%;
|
||||
}
|
||||
.openerp {
|
||||
padding: 0;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue