summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
AgeCommit message (Collapse)Author
2016-10-14[FIX] web_editor, website: fix customize_template_getqsm-odoo
Commit e11f23b701cd061ee2090e506e7ff71cc2ed8c33 split the website customize_template_get into web_editor and website ones. This split was not perfect and commit 20861b482a0f84c2946cc14a05648b87b95bdac4 tried to make it work... but did not made it totally and added an indirect dependency to website module in web_editor... As the final result is wrong and inconsistent and that the previous 9.0 implementation was already ugly, this was not possible to make a consistent full-stable fix. This commit tries to make a fix as stable as possible (the main method name did not change, the arguments did not change, their purpose is the same, ...) which makes the code work and be less ugly. However, the function returns are now slightly different (and JS depends on it). It returns only valid view information (not header stuff which is not related to anything and the inherit_id value is now a combination of the inherit view id and name). Also, a new private method has been created. Also, the method contained code which was deprecated since saas-6 but was never removed (and never broke anything "by chance"). In master these methods will be refactored to make more sense.
2016-10-04[FIX] website: set the correct height for welcome messageqsm-odoo
Commit 48a1eaf79273fbf40b4b0a55ed28d27382477450 adapt the welcome message on website so that it fits the page height. But this does only worked for large screens as the height was forced to main height... which is smaller than the default welcome message height on small screen. The fix only had to use min-height instead of height.
2016-09-30[FIX] website: reset full to False by defaultJeremy Kersten
Studio altered (probably by error) the default value. We reset the old default value, and by security, add the params in the call
2016-09-30[FIX] website: load customize menu at once if already openedqsm-odoo
Following commit 3cbc7ebc4c3e0edb25d1a91dcbf4df163ef6d29e, the bug for customize menu could have been ignored but as it is an easy fix : The customize menu is filled after a rpc which is performed on mousedown on the menu toggle. But in the case the user clicked on the customize menu before the mousedown handler was attached... nothing occured. It is possible since the customize menu is rendered but its JS widget is only attached to it once everything is ready. Now, the menu is filled on first mousedown or if the menu is already opened when the JS widget is attached.
2016-09-21[FIX] website: increase limit in searchpage for menuJeremy Kersten
In edit menu, search with de demo data /shop, was the 12th results, but limit 9. We only move the problem to later, but when the user start with the website apps, it avoid to be lost on first menu creation.
2016-09-02[IMP] website: make the welcome message fit the whole page heightqsm-odoo
2016-08-31[FIX] website: pass `ids` as a positional argumentRaphael Collet
For the sake of simplicity, the method adapter `call_kw_multi` does not look up for `ids` in keyword arguments, instead it expects it in positional arguments.
2016-07-25[MERGE] forward port branch saas-11 up to 7ae5121Christophe Simonis
2016-07-25[MERGE] forward port branch 9.0 up to 1089dcfChristophe Simonis
2016-07-20[FIX] web_editor,website: allow creating pages from edit menuqsm-odoo
The code for page creation from menu edition dialog was there but invisible to the user because of a wrong qweb template inheritance. Indeed, the edit menu dialog relies on an extension of the link dialog template. But this one is extended in-place in another location and that extension is not considered when the second extension is made because a t-extend always use the base template. The only solution to achieve the same result is to copy the edit menu dialog qweb extension in Javascript. Note: the feature was still available from the link dialog in page edition though because this was not concerned by the wrong qweb extension. However, adding a page by this way would create multiple pages because one was created each time a page name was entered (and not only on save !). So typing "test", then changing its mind and typing "hello", then rechanging to "test", then hitting the save button created the "test, "test-1", "test-2" and "hello" pages. This fix takes advantage of an already present parameter which can determine if a new page should be created or not. However, a code refactoring should be done in master for these classes.
2016-07-04[IMP] website,web_editor: review style / contentqsm-odoo
* Mobile preview dialog * Add page dialog (allow to click anywhere to close the modal) * Change label for "auto resize" and "resize" options to "auto size" and "fixed size" and add a checkmark to the currently active one * Overlay border / Options dialog content * Hide the odoo navbar after a delay when the editor starts
2016-07-04[IMP] website: homepage welcome message when emptyqsm-odoo
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-09-24[FIX] web_editor & website: don't display edit placeholder if the node have ↵Christophe Matthieu
class oe_no_empty or oe_not_editable
2015-07-10[IMP] web_editor: adapt css, js and xml to use web_editorChristophe Matthieu
2015-07-10[IMP] web_editor: split website into web_editor (to use editor in backend ↵Christophe Matthieu
for html field) and website
2015-06-25[MERGE] forward port of branch saas-6 up to 81b5c60Christophe Simonis
2015-06-17[FIX] website: use relative url in background imageChristophe Matthieu
Use .css convert into absolute url
2015-06-17[FIX] website: Edition with Firefox with CSS of external domains.Denis Ledoux
Firefox doesn't allow to access sheets cssRules In such a case, we just pass, these css rules will simply not be available for the edition of some inputs. Probably, when a real use case needing these external css rules will come, we will probably need to fetch these style sheets another way. opw-642752
2015-06-17[FIX] website editor clear()Xavier Morel
Apparently in some unclear situations, using delete on the dataset blows up (issue appears in both Safari and phantomjs) failing the test. Only try the deletion if the item is actually present in the dataset, and wrap it in a try/except to handle it blowing up
2015-05-29Revert "[FIX] website: moved website.xml loading to editor"Denis Ledoux
This reverts commit e18a3a43e44da86a92acbe77501838ec6deb87db. website.error is used in the Javascript file it was removed from, in website.js, line 350. Another solution to not load this template when not needed has to be found opw-640822
2015-05-28[MERGE] forward port of branch saas-6 up to bf1e999Christophe Simonis
2015-05-21[FIX] website: moved website.xml loading to editorDavid Monjoie
To avoid loading unneccesary templates on every page.
2015-05-05[MERGE] forward port of branch 8.0 up to a939a27Christophe Simonis
2015-04-29[FIX] website: edit menuGoffin Simon
when closing a modal, the class 'modal-open' was removed from the 'body' tag and all the existing modals became not scrollable. The class 'modal-open' must be kept in the 'body' tag if there is still a visible modal in the dom. Inspired from commit: dee000be14fd55f7d287eee8569f769505f339ac opw:633801
2015-04-17[MERGE] forward port of branch saas-6 up to e941c0fChristophe Simonis
2015-04-09[FIX] website: snippet editor: if a snippet is dropped near a text node with ↵Christophe Matthieu
a previous click, need to get the parent node to trigger the history
2015-04-07[FIX] website.editor: remove javascript exception when the user close the ↵Christophe Matthieu
modal after add a question in website_forum
2015-03-18[IMP] web+addons: improvement to module systemGéry Debongnie
The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions.
2015-03-18[REF] website: update to the new module systemGéry Debongnie
2015-02-12[FIX] website editor: open the media dialog when double click on summernote ↵Christophe Matthieu
button for forum; raise if click on a button before click inside the editor
2015-02-12[IMP] website: create a new web editor in the backend to edit html field ↵Christophe Matthieu
with the website builder
2015-02-12[FIX] website editor: add a p tag when user insert a char in empty editable areaChristophe Matthieu
2015-02-12[IMP] website editor: add color picker into the top editor bar for font awsomeChristophe Matthieu
2015-02-12[IMP] summernote: dom.isImg is unnecessary, because isVoid function contains ↵Christophe Matthieu
that.
2015-02-09[FIX] website editor: don't not apply o_is_inline_editable class for image ↵Christophe Matthieu
field to keep image in center
2015-01-30[FIX] Website: Image editing not possible with safari.Goffin Simon
opw-626209
2015-01-23[IMP] website editor: add media-saved trigger into media editor when the ↵Christophe Matthieu
media is changed
2015-01-23[IMP] website editor: by default apply img-responsive and pull-left on ↵Christophe Matthieu
insert images and option resize apply width in percent
2015-01-23[IMP] website editor: remove font size from media editor (font size is ↵Christophe Matthieu
available in image edition bar)
2015-01-23[IMP] website editor: 'active' link when click to allow the edition of the ↵Christophe Matthieu
last and first char
2015-01-16[ADD] Versioning Module.Goffin Simon
This module allow to make versioning and A/B testing of the website.
2015-01-16[FIX] website editor: Issues with link dialog. After changing style one ↵Christophe Matthieu
button from the modal, all its right sibling buttons are dis-appeared.; delete content of the range is wrong
2015-01-16[IMP] website editor: designer can add new font like font-awsome (add folder ↵Christophe Matthieu
and need to push the new parser in website.editor.fontIcons javascript object)
2015-01-16[IMP] website editor: move media style options from the customize menu to ↵Christophe Matthieu
the top editor bar
2015-01-16[FIX] website editor: can't select and edit an empty field html or textChristophe Matthieu
2015-01-16[FIX] website_blog: Display pictogram in media editor but not able to set ↵Christophe Matthieu
the pictograms or videos as cover of blog.
2015-01-16[FIX] website editor: Unable to create link after selecting textChristophe Matthieu
2015-01-16[FIX] website editor: Holding shift key and right arrow key works well, but ↵Christophe Matthieu
unable to do the opposite. Can't select text from right side to left. Fix re-range.