diff options
Diffstat (limited to 'addons/website/static/src/snippets')
| -rw-r--r-- | addons/website/static/src/snippets/s_image_gallery/options.js | 2 |
1 files changed, 1 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 dd9ef5e6206..bc040ebbad3 100644 --- a/addons/website/static/src/snippets/s_image_gallery/options.js +++ b/addons/website/static/src/snippets/s_image_gallery/options.js @@ -21,7 +21,7 @@ options.registry.gallery = options.Class.extend({ this.$target.addClass('o_fake_not_editable').attr('contentEditable', false); // Make sure image previews are updated if images are changed - this.$target.on('save', 'img', function (ev) { + this.$target.on('image_changed', 'img', function (ev) { var $img = $(ev.currentTarget); var index = self.$target.find('.carousel-item.active').index(); self.$('.carousel:first li[data-target]:eq(' + index + ')') |
