diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-05-23 14:47:45 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-05-27 16:32:52 +0000 |
| commit | d4b09c11460c280864d64d73598903bc6235e3b4 (patch) | |
| tree | 5b8b9658d41e92406bd18c49a4b6af855d80df06 /addons/web_unsplash | |
| parent | b0acd056e952c8e09c21f1d00689675c11d8c411 (diff) | |
[IMP] web_editor, web_unsplash: remove options duplicate attributes
Since a reference to the options is already kept, there is no need to keep a
reference to each option individually.
PR: #33509
Diffstat (limited to 'addons/web_unsplash')
| -rw-r--r-- | addons/web_unsplash/static/src/js/unsplash_image_widget.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_unsplash/static/src/js/unsplash_image_widget.js b/addons/web_unsplash/static/src/js/unsplash_image_widget.js index 5f5100c3da2..963d31c961a 100644 --- a/addons/web_unsplash/static/src/js/unsplash_image_widget.js +++ b/addons/web_unsplash/static/src/js/unsplash_image_widget.js @@ -240,7 +240,7 @@ widgetsMedia.ImageWidget.include({ var imgid = $(ev.currentTarget).data('imgid'); var url = $(ev.currentTarget).data('url'); var downloadURL = $(ev.currentTarget).data('download-url'); - if (!this.multiImages) { + if (!this.options.multiImages) { this._unsplash.selectedImages = {}; } if (imgid in this._unsplash.selectedImages) { |
