summaryrefslogtreecommitdiff
path: root/addons/website/static/src/snippets/s_image_gallery/options.js
AgeCommit message (Collapse)Author
2021-05-31[FIX] website: remove "add image" button from the normal modeYounn Olivier
The "Add image" button was shown out of the editor mode when removing all images from a snippet. task-2469516 closes odoo/odoo#71424 X-original-commit: c1f4a39071c8f99499a7e1e5214362ac29df8881 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-03-09[IMP] website: make images wall editablexO-Tx
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>
2021-02-11[FIX] website, web_editor : image gallery miniatures are not updatedYounn Olivier
Description of the task : Make the website ui as consistent as possible by making some layout quick wins. Behaviour before the PR is merged : When changing an image in the image gallery snippet, its miniature is not updated. Desired behaviour after PR is merged : The miniature of an image of the image gallery is updated when the image is changed. The snippet options listens to the 'image_changed' event triggered by the media widget. task-2438556
2020-09-10[FIX] website: image gallery do not open the media dialog if not emptyBenjamin Vray
Do not auto open the media dialog after the drop if there are images in snippets images wall and images gallery. task-2312878
2020-08-18[MOV] website: move JS Qweb templates to snippets directoryLaurent Stukkens (LTU)
* Prior to this commit, Snippets XML Qweb templates files were located under website/static/src/xml/. * After this commit, Snippets XML Qweb templates files will be named AAA.xml (with AAA being the revision number) and located under the related Snippet directory '/website/static/src/snippets/SNIPPET_DIRECTORY/' task-2276740 PR #53175
2020-07-30[FIX] website: prevent flickering on image reorder in the image wallThanh Dodeur
Before this commit, reordering the images in the image wall was causing a flicker of the snippet options. It was caused by a forced deselection of the snippet (image) that is not necessary since 17e7e754cdd9f175f39c066484398a572ee0778d task-2307083 closes odoo/odoo#55090 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-07-17[IMP] website: keep the selected image after moving it in galleryBenjamin Vray
Keep the selected image after moving it in the gallery. So that the options for moving the current image are always displayed. Part of https://github.com/odoo/odoo/pull/45096 task-2162952
2020-07-17[IMP] website: split image gallery into 2 different snippetsBenjamin Vray
Snippet image gallery retains only the slideshow mode and a new snippet called 'image wall' takes the 3 other modes. Part of https://github.com/odoo/odoo/pull/45096 task-2162952
2020-07-17[IMP] website: review gallery snippetBenjamin Vray
Review the gallery snippet. It has been improved in multiple ways. Added new options, etc. Part of https://github.com/odoo/odoo/pull/45096 task-2162952
2020-03-30[IMP] web_editor, *: set image alt automatically, remove useless altsSamuel Degueldre
*: website, web_unplash The html alt attribute is supposed to contain a description of an image's content (an alternative to the visual representation), a lot of snippets contained alt attributes that were not descriptive of their content, and would as such be counter-productive in terms of accessibility. This commit removes those. Previously, the alt attribute on img tags had to be set manually by the user through the editor. This commit makes use of the description field on ir.attachment to store image description, and sets the alt attribute on images to that description when choosing an image from the media dialog. task-2091417 closes odoo/odoo#45174 Related: odoo/enterprise#9520 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-25[FIX] website: fix an issue when changing width option in the galleryBenjamin Vray
As the container class now changes with the width option. We cannot use this class in the js or css files anymore. task-2162952 closes odoo/odoo#48377 X-original-commit: 1cf2ee35c2d85d87b27d5bd72c414e12fcbaf123 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-25[FIX] website: keep images order in gallery snippet with masonry modeBenjamin Vray
Keep the same images order as the other modes in the gallery snippet with masonry mode. Before this commit, the images order was reversed with masonry mode. task-2162952 closes odoo/odoo#44486 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-12[FIX] website: restore hidden indicators in gallery snippetBenjamin Vray
Indicators were hidden in editor when switching to slideshow mode from any other mode. Because the class of the selected mode was defined after rendering and we need this class before the rendering. This also fixes other small issues when switching between different modes. Part of https://github.com/odoo/odoo/pull/44180 task-2162952 closes odoo/odoo#47519 X-original-commit: a99150b11a463901121bbe9751370231e3564ca2 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-12[FIX] website: update links ids in duplicated carousel snippetsBenjamin Vray
(+ gallery snippet in carousel mode) Part of https://github.com/odoo/odoo/pull/44180 task-2162952 X-original-commit: 6237c59d607389cb0ed57694bb23b253f49805c8
2020-02-10[FIX] web_editor, *: unblock editor after any option dialog closingfja-odoo
*: website Some dialog promises were not resolved on close, blocking the editor. closes odoo/odoo#44953 X-original-commit: 20f97470cdc59a817526305806e94b222f26a0f2 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-02-07[FIX] web_editor, website, *: editor `notify` method must be synchronousqsm-odoo
* website_form Some technical explanations: The method became async because the `setTarget` call which was in there became `async` since it performed an UI update. As this method being async is a problem with some snippets, it is best to keep it synchronous for now. For this, the UI update in `setTarget` is removed and becomes the responsibility of the caller. Nothing relied on it except one code, which is solved by calling `onFocus` before the UI update which occurs on focus, as it is already the case in master. closes odoo/odoo#44850 X-original-commit: 53bba0660237abbcadc9675fd89ec94a2a31e130 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-18[REF] website: move s_image_gallery snippet to dedicated filesqsm-odoo
2019-12-18[REF] move history of xml/css/js to s_image_gallery filesqsm-odoo