diff options
Diffstat (limited to 'addons/website/static/src/js/website_bootstrap.js')
| -rw-r--r-- | addons/website/static/src/js/website_bootstrap.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/addons/website/static/src/js/website_bootstrap.js b/addons/website/static/src/js/website_bootstrap.js deleted file mode 100644 index d08f6270fc9..00000000000 --- a/addons/website/static/src/js/website_bootstrap.js +++ /dev/null @@ -1,19 +0,0 @@ -$(function() { - // Init headless webclient - // TODO: Webclient research : use iframe embedding mode - // Meanwhile, let's HACK !!! - var s = new openerp.init(['web', 'website']); - 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.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'); - - $(function() { - var editor = new instance.website.EditorBar(instance.webclient); - editor.prependTo($('body')); - $('body').css('padding-top', '50px'); // Not working properly: editor.$el.outerHeight()); - }); -}); |
