diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-04-16 11:18:08 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-04-16 11:18:08 +0200 |
| commit | 412501a5dc8f8826f10eac0c19adfa82527ad4bb (patch) | |
| tree | 76b7408ff58ac78c16a585b8ed7c41d97770e999 /addons/website_form/static | |
| parent | 4162360ae2114bc6eee25e2ffca0e0d48e1ef644 (diff) | |
| parent | 71476226653ba0326cfc0331e1463364cfb89f4e (diff) | |
[MERGE] forward port branch 10.0 up to 71476226653
Diffstat (limited to 'addons/website_form/static')
| -rw-r--r-- | addons/website_form/static/src/js/website_form.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/website_form/static/src/js/website_form.js b/addons/website_form/static/src/js/website_form.js index 2f91db94c9b..022156b99f7 100644 --- a/addons/website_form/static/src/js/website_form.js +++ b/addons/website_form/static/src/js/website_form.js @@ -13,7 +13,11 @@ odoo.define('website_form.animation', function (require) { snippet_animation.registry.form_builder_send = snippet_animation.Class.extend({ selector: '.s_website_form', - start: function() { + start: function(editable_mode) { + if (editable_mode) { + this.stop(); + return; + } var self = this; this.templates_loaded = ajax.loadXML('/website_form/static/src/xml/website_form.xml', qweb); this.$target.find('.o_website_form_send').on('click',function(e) {self.send(e);}); |
