diff options
Diffstat (limited to 'addons/website/static/src/js/website_editor.js')
| -rw-r--r-- | addons/website/static/src/js/website_editor.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/addons/website/static/src/js/website_editor.js b/addons/website/static/src/js/website_editor.js index 270e28593ef..5822067bf45 100644 --- a/addons/website/static/src/js/website_editor.js +++ b/addons/website/static/src/js/website_editor.js @@ -1,16 +1,20 @@ (function() { // Init headless webclient - // TODO: check embedded mode or how to put it cleanly in a dom ready callback + // TODO: Webclient research : use iframe embedding mode + // Meanwhile, let's HACK !!! var $web = $('<div style="display: none;"/>').appendTo('body'); var s = new openerp.init(['web']); + s.web.WebClient.bind_hashchange = s.web.blockUI = s.web.unblockUI = function() {}; + s.web.WebClient.include({ do_push_state: function() {} }); var wc = new s.web.WebClient(); - // TODO: disable blockUI wc.appendTo($web); var instance = openerp.instances[wc.session.name]; setTimeout(function () { // HACKY HACK YUCK YUCK !! // TODO: Need modification to webclient. Webclient shall trigger an event when it's ready. + // Maybe notification shall trigger event too, so the host can bind on it and use + // it's own means in order to trigger it's own notification !? if (instance.web.notification) { instance.web.notification.$el.appendTo('body'); } else { |
