summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/snippets.options.js
AgeCommit message (Collapse)Author
2017-08-16[MOV] web_editor, website: reorganize filesqsm-odoo
2017-07-10[IMP] web_editor: improve margins system UXstefanorigano
- Clearly show margins' size on editing - Top margin icons/cursors: by an user point of view, adding a margin-top will move the content 'down', so change handler's icons and cursors accordingly - Highlight handles during editing and if previously edited - Vertically center handle's icon if enough room is available
2017-06-14[IMP] website, web_editor: reorganize background snippet optiondbh
2017-06-01[FIX] website: properly rebind background eventsDharmraj Jhala
In carousel snippet, the target element for background snippet option is being changed manually. So for the new target, we have to rebind the associated events that were bound in `start` function of the snippet option. For that, some code is extracted from the `start` function and is used to rebind necessary events for new targets. In particular, this was preventing the carousel slides' backgrounds to be automatically removed when a background-color was selected.
2016-09-28[MERGE] forward port branch saas-12 up to 7134affChristophe Simonis
2016-09-27[FIX] website, *: properly process saving from editor dialogsqsm-odoo
* web_editor, website_blog Since recent refactoring, web editor dialogs automatically trigger an event when closed (saved or cancel). The problem is that there still was manual trigger of those events or variants ("save" instead of "saved"). To prevent multi-saving and be consistent, all save events are now automatically triggered on save/close (no more manual) and the event name is "save".
2016-09-20[IMP] website, web_editor, mass_mailing: move margin and size optionsqsm-odoo
website -> web_editor so that they are available for mass_mailing. To allow setting margins on td elements: As the above mentionned option allows to control the mt and mb classes on the mass mailing items, the problem is that we would ideally want it to be functionnal on td element as they are the main part of a mail. As they don't support margins, there were many options to fix the problem: - Add more JS to place the mt and mb classes on children of td element - Place the option on children of td element and not td element itself but in that case, the width control of td would imply a lot of parent option hierarchy, or the width control had also to be adapted to control children - Control padding instead of margin. This forces to add lots of css rules like pt4 pt8, ... (or td.mt4, td.mt8, ...). The last solution has been chosen. Padding is more supported than margins in mail client anyway and the css rules will be isolated in the mail editor anyway. Using td.mt4 instead of pt4 had the advantage to not require any JS modification.
2016-09-09[MERGE] forward port branch saas-12 up to 9f28139Christophe Simonis
2016-09-07[IMP] web_editor, website: add colorpicker palettes customizationsstefanorigano
* Add the ability to define palettes custom selection. * Add the ability to define a custom title for the colorpicker dropdown * Define a custom layout for single (unique) palette layout * Define overlay color options based on new colopicker for Cover and Banner text containers * Define default palettes
2016-09-07[IMP] web_editor: change design of transparent colors palettestefanorigano
* Add a "transparent" button * Add a special background for transparent background buttons + Some minor colorpicker design change
2016-09-06[FIX] web_editor: stop resetting bg image of parent snippet on color changeqsm-odoo
Commit 404ed0f7884ff724706e6d7f50d35482e92ce60a tried to solve the problem but only solved a part of it. Indeed, if the snippet child has a bg color option but not a bg image option, the event propagation stops in the parent handler, when it is too late. Solution is checking that the event comes from the same element on which the callback is attached to.
2016-09-03[MERGE] forward port branch saas-12 up to 476cb5a0Christophe Simonis
2016-08-31[IMP] web_editor,website: rename "background image options" optionqsm-odoo
"Background Image Options" -> "Background Image Sizing"
2016-08-31[FIX] web_editor: do not propagate event communication betweenqsm-odoo
background and color snippet options The background and color snippet options communicate so that if a color is set while a background is already set, the backgrond is removed. The problem is that the event propagation was not stop so if a snippet had a background and one of its child set a color, the background was removed.
2016-07-29[MERGE] forward port branch saas-11 up to 3aea814Christophe Simonis
2016-07-25[FIX] web_editor: allow adding options on predefined bg classesqsm-odoo
The editor allows using background image options on snippets which use a background-image. For this to work, the oe_img_bg css class has to be on this snippet. The problem is that the class is absent when using some themes as the select_class method removes it to place its own value. Now, the oe_img_bg class is (re)added when a select_class method is used within the background image option.
2016-07-05[IMP] web_editor: background + color snippet optionsqsm-odoo
Now, when choosing a background-color when a background-image has already been selected, the background image is removed on hover/click of the color option. However, the opposite operation remains the same. So if you choose a background-color, you can then choose a background-image and the colors will be kept.
2016-07-04[REF] web_editor,website(_*): snippetsqsm-odoo
Refactor snippet structure * new "cover" snippet * move the title out of col-md-12 * delete snippets (s_quote_slider) * rename snippets (FAQ Roller -> Accordion) * ... Refactor the way the background images are handled so that themes can customize the defaults ones easily without ugly xpath or ugly css.
2016-07-04[IMP] web_editor,website: snippet options (parent & deletion)qsm-odoo
* Always allow to delete a part (and delete parent if empty) * Show parent options (by displaying the snippet name if any, "column" for col-* and "Block" otherwise) * ...
2016-07-04[REF] web_editor: code refactoring and simplificationqsm-odoo
* Remove dead code + optimization * Use Dialog API from web module * Reorganize files * Correct buggy $() function for snippet option class * Add comments * Fix the snippet parent navigation : If a page contained a three level snippet structure (i.e A contains B contains C), when editing the following bug occured : If B or C was selected first, parenting buttons were correctly set. But if selecting A then C, clicking on the parent lead to going back on A instead of going on B. * Fix snippet thumbnail layout * Better isolate ui css from themes * MediaDialog image list : prevent displaying empty attachments * ...
2016-05-24[FIX] web_editor: snippet colorpicker optionqsm-odoo
When going over the colorpicker when no bg-* class was selected yet, the bg-undefined class was added on the snippet. Also, when clicking on the reset button, the bg-* class was removed but the selected button in the colorpicker was not unselected.
2016-02-24[REF] web_editor,website,mass_mailing: JS/XML updateqsm-odoo
* Adapt DOM selectors * Refactore dialog XMLs to have odoo styling * New editor options (background-position, ...) * Various improvements
2016-02-24[REF] website,web_editor: complete restylingstefanorigano
2015-11-04[FIX] web_editor: value changes of many2one in the website enable the save ↵Christophe Matthieu
button
2015-11-04[FIX] web_editor: edit event badge on the website.Christophe Matthieu
Issue: edit the badge on the event list in the website, the many2one widget doesn't work because the request domain is false.
2015-10-26[IMP] web_editor: move picture options from snippet to summernote barChristophe Matthieu
Difficulty for the user to understand how to change the images. Some options summernote being in the bar and the other in the snippets editor. Need to merge this options.
2015-09-28[FIX] web_editor: media trigger content_changed when change the mediaChristophe Matthieu
2015-08-24[MERGE] forward port of branch saas-6 up to e16d495Christophe Simonis
2015-07-22[MERGE] forward port of branch saas-6 up to 63e92cbChristophe Simonis
2015-07-10[IMP] web_editor: split website into web_editor (to use editor in backend ↵Christophe Matthieu
for html field) and website