[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
This commit is contained in:
xO-Tx
2021-03-09 11:02:36 +00:00
committed by qsm-odoo
parent b1e48c8dd2
commit 90b1b1b1b0
@@ -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);