From 39d514678cdf26fb131745c2d733bcd202b1b0cf Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Fri, 17 Feb 2012 11:56:36 +0100 Subject: [imp] repaired illogic al's code bzr revid: nicolas.vanhoren@openerp.com-20120217105636-61tk67zbx9calc1b --- addons/web/controllers/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'addons/web/controllers/main.py') diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index eaf3d671874..3fbb943342f 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -103,7 +103,9 @@ html_template = """ @@ -270,7 +272,6 @@ class WebClient(openerpweb.Controller): 'js': js, 'css': css, 'modules': simplejson.dumps(self.server_wide_modules(req)), - 'init': 'new s.web.WebClient().start();', } return r -- cgit v1.2.3 From feaade623ab11807b837dbf392608f9df25dd930 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Fri, 17 Feb 2012 12:01:52 +0100 Subject: [imp] put openerp into body bzr revid: nicolas.vanhoren@openerp.com-20120217110152-x66rfhyfkqao04k0 --- addons/web/controllers/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'addons/web/controllers/main.py') diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 3fbb943342f..2fa9a38a82b 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -104,12 +104,11 @@ html_template = """ $(function() { var s = new openerp.init(%(modules)s); var wc = new s.web.WebClient(); - wc.$element = $(document.body); - wc.start(); + wc.appendTo($(document.body)); }); - + """ -- cgit v1.2.3 From 8036408be55ab9ff3a5b1b6bf1b6241236277b8e Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Mon, 20 Feb 2012 10:52:38 +0100 Subject: [imp] made the body css properties be included only in full web-client mode bzr revid: nicolas.vanhoren@openerp.com-20120220095238-lxwtctbpo46ekpul --- addons/web/controllers/main.py | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web/controllers/main.py') diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 2fa9a38a82b..c87439fd78b 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -98,6 +98,7 @@ html_template = """ OpenERP + %(css)s %(js)s