summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website_bootstrap.js
diff options
context:
space:
mode:
authorFrédéric van der Essen <fva@openerp.com>2013-08-19 16:11:08 +0200
committerFrédéric van der Essen <fva@openerp.com>2013-08-19 16:11:08 +0200
commit63dd1b0bb73d2a71b3a643ea1a613ca3759ceacf (patch)
tree94366fbe12a54730d467fa365dcde31a22140a0e /addons/website/static/src/js/website_bootstrap.js
parent660e8798abdd73eb56f1b571654edb39707c24c2 (diff)
parentc94c7c42260bb878b0c0dfa921a0558f7dc005be (diff)
[MERGE] from trunk
bzr revid: fva@openerp.com-20130819141108-s2vsjqdzzzlib4oi
Diffstat (limited to 'addons/website/static/src/js/website_bootstrap.js')
-rw-r--r--addons/website/static/src/js/website_bootstrap.js19
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());
- });
-});