From dc12ce587a728400faaa29415c9141b7d56bda0a Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 2 Jul 2013 18:57:54 +0200 Subject: [PATCH] [FIX] website: do not show webclient bzr revid: chs@openerp.com-20130702165754-sj7qbv8ncsj4uy3m --- addons/website/static/src/js/website_bootstrap.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/addons/website/static/src/js/website_bootstrap.js b/addons/website/static/src/js/website_bootstrap.js index 308c411..129bcba 100644 --- a/addons/website/static/src/js/website_bootstrap.js +++ b/addons/website/static/src/js/website_bootstrap.js @@ -2,13 +2,11 @@ Aloha.ready(function() { // Init headless webclient // TODO: Webclient research : use iframe embedding mode // Meanwhile, let's HACK !!! - var $web = $('
').appendTo('body'); - var $web = $('
').appendTo($web); var s = new openerp.init(['web', 'website']); - s.web.WebClient.bind_hashchange = s.web.blockUI = s.web.unblockUI = function() {}; + s.web.WebClient.bind_hashchange = s.web.WebClient.show_common = s.web.blockUI = s.web.unblockUI = function() {}; s.web.WebClient.include({ do_push_state: function() {} }); var wc = new s.web.WebClient(); - wc.appendTo($web); + wc.start(); var instance = openerp.instances[wc.session.name]; // Another hack since we have no callback when webclient has loaded modules. instance.web.qweb.add_template('/website/static/src/xml/website.xml'); -- 1.7.10.4