From 6c284a18d4c0442e46a043523ce682fffcfbb179 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 4 Oct 2016 16:43:34 +0200 Subject: [PATCH] [FIX] web_editor: allow website_animate to preview image animation Animation preview on images did not work as the web_editor stopped every potential animation when an image entered edition. As the behavior does not seem useful as there is no infinite animation which is possible with standard odoo (and even if it was the case, it would not be too strange that the animation continues), the feature is removed with this commit. --- addons/web_editor/static/src/js/rte.summernote.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/web_editor/static/src/js/rte.summernote.js b/addons/web_editor/static/src/js/rte.summernote.js index 11b2dea7d81..a21045a4d5c 100644 --- a/addons/web_editor/static/src/js/rte.summernote.js +++ b/addons/web_editor/static/src/js/rte.summernote.js @@ -216,9 +216,6 @@ eventHandler.modules.popover.button.update = function ($container, oStyle) { if (previous) { $(previous).css({"-webkit-animation-play-state": "", "animation-play-state": "", "-webkit-transition": "", "transition": "", "-webkit-animation": "", "animation": ""}); } - if (oStyle.image) { - $(oStyle.image).css({"-webkit-animation": "none", "animation": "none"}); - } // end fn_boutton_update.call(this, $container, oStyle);