From 90b1b1b1b00bc4b9a03be784ea7a801624e8548d Mon Sep 17 00:00:00 2001 From: xO-Tx Date: Wed, 24 Feb 2021 02:34:11 +0000 Subject: [PATCH] [IMP] website: make images wall editable The goal of this commit is to make the Images Wall/Gallery snippet editable to be able to open the media dialog on "double-click" on images. Part of https://github.com/odoo/odoo/pull/66544 task-2326573 --- addons/website/static/src/snippets/s_image_gallery/options.js | 3 --- 1 file changed, 3 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 bc040ebbad3..3b6937ba6de 100644 --- a/addons/website/static/src/snippets/s_image_gallery/options.js +++ b/addons/website/static/src/snippets/s_image_gallery/options.js @@ -17,9 +17,6 @@ options.registry.gallery = options.Class.extend({ start: function () { var self = this; - // The snippet should not be editable - this.$target.addClass('o_fake_not_editable').attr('contentEditable', false); - // Make sure image previews are updated if images are changed this.$target.on('image_changed', 'img', function (ev) { var $img = $(ev.currentTarget);