diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-04-16 14:21:00 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-04-16 14:21:00 +0200 |
| commit | bfa5af45df0662b78256cf4f7fb01d966467b18a (patch) | |
| tree | 53b2da4eae2da7ffd6da2f6978adf6d2f2097598 /addons/website_form/static | |
| parent | 3efa5b01b42903a1807b5dc77578b07c20299bc2 (diff) | |
| parent | aab0908818ab4bee0af136d4e693a90ab1b2d261 (diff) | |
[MERGE] forward port branch saas-14 up to aab0908818a
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 716c49ed685..f7c0ae1e2c2 100644 --- a/addons/website_form/static/src/js/website_form.js +++ b/addons/website_form/static/src/js/website_form.js @@ -21,7 +21,11 @@ odoo.define('website_form.animation', function (require) { return $.when(this._super.apply(this, arguments), def); }, - 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);}); |
