});
</script>
</head>
- <body id="oe" class="openerp"></body>
+ <body></body>
</html>
"""
'js': js,
'css': css,
'modules': simplejson.dumps(self.server_wide_modules(req)),
- 'init': 'new s.web.WebClient("oe").start();',
+ 'init': 'new s.web.WebClient().replace($("body"));',
}
return r
*
* @param element_id
*/
- init: function(element_id) {
+ init: function(parent) {
var self = this;
- this._super(null, element_id);
+ this._super(parent);
openerp.webclient = this;
this.notification = new openerp.web.Notification(this);
this._current_state = null;
},
+ render_element: function() {
+ this.$element = $('<body/>');
+ this.$element.attr("id", "oe");
+ this.$element.addClass("openerp");
+ },
start: function() {
- this._super.apply(this, arguments);
var self = this;
this.session.bind().then(function() {
var params = {};