summaryrefslogtreecommitdiff
path: root/addons/website/static/src/snippets/s_image_gallery
diff options
context:
space:
mode:
authorThanh Dodeur <tso@odoo.com>2020-07-29 06:55:52 +0000
committerThanh Dodeur <tso@odoo.com>2020-07-30 07:07:07 +0000
commita2588741321bf09a03624ae1a27e045c5f75de0d (patch)
treecfeec1c6d5850242fe112eefbadd1e344d16db65 /addons/website/static/src/snippets/s_image_gallery
parente7fd2ba5c88eda06363389339eb651cc541fc4dd (diff)
[FIX] website: prevent flickering on image reorder in the image wall
Before this commit, reordering the images in the image wall was causing a flicker of the snippet options. It was caused by a forced deselection of the snippet (image) that is not necessary since 17e7e754cdd9f175f39c066484398a572ee0778d task-2307083 closes odoo/odoo#55090 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src/snippets/s_image_gallery')
-rw-r--r--addons/website/static/src/snippets/s_image_gallery/options.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/website/static/src/snippets/s_image_gallery/options.js b/addons/website/static/src/snippets/s_image_gallery/options.js
index 2dbc6a2ac38..a3fe94332da 100644
--- a/addons/website/static/src/snippets/s_image_gallery/options.js
+++ b/addons/website/static/src/snippets/s_image_gallery/options.js
@@ -469,7 +469,6 @@ options.registry.gallery_img = options.Class.extend({
* @see this.selectClass for parameters
*/
position: function (previewMode, widgetValue, params) {
- this.trigger_up('deactivate_snippet');
this.trigger_up('option_update', {
optionName: 'gallery',
name: 'image_index_request',