summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorxO-Tx <mou@odoo.com>2021-02-24 02:34:11 +0000
committerqsm-odoo <qsm@odoo.com>2021-03-09 15:35:10 +0000
commit412c6021ffa513a77cace807a41bffa7909e9179 (patch)
tree3a1797b2ce2c9ec89ec710e0a9776915a2dc2885 /addons/website/static/src
parent666fc3697bd7d70cfa0dd92f0a401b771196bb27 (diff)
[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. Backport from https://github.com/odoo/odoo/pull/66544 closes odoo/odoo#67547 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/snippets/s_image_gallery/options.js3
1 files changed, 0 insertions, 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);