diff options
| author | Christophe Matthieu <chm@openerp.com> | 2013-09-16 13:51:48 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2013-09-16 13:51:48 +0200 |
| commit | 00a4fe922942dc89a542f22ee4f52d3406e33b4f (patch) | |
| tree | 47e885cd287847c70a66e5f050437c77ed4ec0fc /addons/website/static/src/js/website.snippets.js | |
| parent | ef0d17312108a18a5a529e1b9140ede5f3b9d890 (diff) | |
[IMP] website: snippet: css auto hide
bzr revid: chm@openerp.com-20130916115148-wx6a1ux1iq0dupyg
Diffstat (limited to 'addons/website/static/src/js/website.snippets.js')
| -rw-r--r-- | addons/website/static/src/js/website.snippets.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/addons/website/static/src/js/website.snippets.js b/addons/website/static/src/js/website.snippets.js index 6584ba7371e..802c9438885 100644 --- a/addons/website/static/src/js/website.snippets.js +++ b/addons/website/static/src/js/website.snippets.js @@ -7,8 +7,7 @@ website.EditorBar.include({ edit: function () { window.snippets = this.snippets = new website.snippet.BuildingBlock(this); - this.snippets.insertAfter(this.$el); - this.snippets.show(); + this.snippets.appendTo(this.$el); return this._super.apply(this, arguments); }, save: function () { @@ -96,14 +95,10 @@ $el.css($target.offset()); }, show: function () { - this.$el.css('margin-top', '0px'); - $('body').trigger('resize'); - $("body").css('padding-top', '220px'); + this.$el.css("display", ""); }, hide: function () { - this.$el.css('margin-top', '-170px'); - $("body").css('padding-top', '50px'); - $('body').trigger('resize'); + this.$el.hide(); }, bind_snippet_click_editor: function () { |
