diff options
| author | Fabien Meghazi <fme@openerp.com> | 2013-12-18 21:16:19 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2013-12-18 21:16:19 +0100 |
| commit | b180d69808e7ef16e3854ef347cc8aa57eca718f (patch) | |
| tree | 4c8c20d9870d56d71b7e073a9aa624c2110bc3f6 /addons/website/static/src/js/website.editor.js | |
| parent | 9abcc28884688bd251c5a9de77b3afda11dcec90 (diff) | |
[IMP] Better events naming for EditorBar height related stuff
bzr revid: fme@openerp.com-20131218201619-vja6dv0sctokep3b
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, 3 insertions, 5 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index 661c6d80a5f..51f14a0f6d5 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -422,7 +422,6 @@ }, start: function() { var self = this; - this.height = null; this.saving_mutex = new openerp.Mutex(); this.$('#website-top-edit').hide(); @@ -457,10 +456,9 @@ }, check_height: function () { var editor_height = this.$el.outerHeight(); - if (this.height != editor_height) { - this.height = editor_height; - $(document.body).css('padding-top', this.height); - this.trigger('resize', this.height); + if (this.get('height') != editor_height) { + $(document.body).css('padding-top', editor_height); + this.set('height', editor_height); } }, edit: function () { |
