summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/menu
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2019-12-23 13:37:55 +0000
committerSamuel Degueldre <sad@odoo.com>2019-12-23 15:49:09 +0000
commitbbf93a80858271b0ebb4760e2b6766313de15225 (patch)
treead9ed403b65683694d65c8099fde0d77972cd4ed /addons/website/static/src/js/menu
parentfe97c78a409a3b94da5041fbe092f6540d99a1bf (diff)
[FIX] website: fix snippet animations not being destroyed before clone
In a80775ce3c7d, some code was refactored to stop using the confusing 'animation' denomination, as in reality they were just public facing widgets that did many things, such as loading data based on data-attributes and other things that were not always animation related. One instance of the animation_stop_demand event was not renamed in the _onSnippetWillBeCloned method, which creates some problems, one of which being that the facebook snippet's iframe wouldn't be destroyed on clone, but since the animation was started after the clone, this would result in one facebook page snippet with two iframes with the facebook page, for a total of 3 instead of 2, and one of these was unconfigurable. This commit renames the event to restore the proper behavior. closes odoo/odoo#42311 X-original-commit: 2a671f47f87e2bb52a5fade11ea6b79070516694 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src/js/menu')
-rw-r--r--addons/website/static/src/js/menu/edit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/src/js/menu/edit.js b/addons/website/static/src/js/menu/edit.js
index 7e113516a17..e9bd7d83527 100644
--- a/addons/website/static/src/js/menu/edit.js
+++ b/addons/website/static/src/js/menu/edit.js
@@ -209,7 +209,7 @@ var EditPageMenu = websiteNavbarData.WebsiteNavbarActionWidget.extend({
* @param {OdooEvent} ev
*/
_onSnippetWillBeCloned: function (ev) {
- this.trigger_up('animation_stop_demand', {
+ this.trigger_up('widgets_stop_request', {
$target: ev.data.$target,
});
},