summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.contentMenu.js
AgeCommit message (Collapse)Author
2017-08-16[MOV] web_editor, website: reorganize filesqsm-odoo
2017-07-10[IMP] website: fix design of 'Edit Menu' modalsstefanorigano
2017-05-23[IMP] website: added options to create a new page from the menu editorDarshan Kalola
2017-04-13[MERGE] forward port branch saas-14 up to 8f30e707e53Christophe Simonis
2017-04-12[IMP] website: allow inheritance on EditMenuDialogJonathan Nemry (ACSONE)
Closes #16367 opw-728387
2017-02-20[FIX] web_editor, website: restore content menu featureqsm-odoo
Commit 3c9e6c89e7207636c1bdab4ed8118c0c1089d43e made big changes to the link editor dialog... but also broke many features with it. Commit 9a1ea6dc08af8b6dc5c5a47277f03f662094d4b2 already fixed some of them but this commit fixes a bigger one. Indeed, the menu edition feature was totally broken since the changes. Also, the DOM was messy which broke form navigation, etc. This commit also simplifies the LESS which was uselessly big.
2016-11-24[MERGE] forward port branch saas-12 up to d853d3cChristophe Simonis
2016-11-23[FIX] website: fix opening of the SelectEditMenuDialogqsm-odoo
When on a page event for example, when the user choose "Edit menu", a modal is first opened to ask which menu to edit (the top menu or the event menu ?). This feature was broken with a web_editor refactoring. Indeed, the dialog was converted to use the standard dialog class but the widget was still inserted in the DOM thanks to "appendTo" instead of the modal built-in "open" method, preventing it to be properly opened.
2016-10-04[FIX] website: properly reload editor after menu editionqsm-odoo
Commit 5f98040430ab0ce750382cc0faf57146f8759752 in saas-12 changed some "saved" event to "save" event but forgot to adapt new features which depend on this in 10.0 after forward port.
2016-10-03[FIX] website: fix library incompatibility for moves of menusDenis Ledoux
Since the library nestedSortable was updated to the release 2.1a, at the below revision: https://github.com/odoo/odoo/commit/aa19d9edd02756d87056a44340e36568b3183e21 It was no longer possible, in the front-end, to move the menus: Re-sequence them, put one below another, ... Indeed, in that piece of code, `.item_id` was never set with the new release, while it was the case with the former one. We replace with `.id`, which looks like to have the same behavior.
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-08-19[IMP] website: allow to navigate through menus in edit modeqsm-odoo
Now, when clicking on a menu item while being in edit mode, a modal opens asking if we want to go to that page, edit that page, edit the menu or do nothing (it only allowed to edit the menu item before).
2016-08-19[FIX] web_editor,website: stop closing web_editor dialog two timesqsm-odoo
This commit fixes two problems: * Clicking on the save button of a web_editor dialog closed the dialog two times because the button was created with the flag "close: true" and binded to a handler which closes the dialog. This also prevented to extend this handler by placing the this._super call in a deferred. * Some web_editor dialog extended the save callback but forgot to use the this._super, which prevents the "saved" event to be triggered (currently not used anywhere but useful for custo and master).
2016-08-19[FIX] web_editor,website: stop closing web_editor dialog two timesqsm-odoo
This commit fixes two problems: * Clicking on the save button of a web_editor dialog closed the dialog two times because the button was created with the flag "close: true" and binded to a handler which closes the dialog. This also prevented to extend this handler by placing the this._super call in a deferred. * Some web_editor dialog extended the save callback but forgot to use the this._super, which prevents the "saved" event to be triggered (currently not used anywhere but useful for custo and master).
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: improving rename dialogFabien Pinckaers
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-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-12-02[FIX] website, web_editor: open in new windowNicolas Martinelli
The field `isNewWindow` is used to open a link in a new tab. In this case, the field newWindow was used, and therefore the property was not applied. opw-657510
2015-10-02[FIX] website: broken rename_page JS methodXavier Morel
Variables had been renamed/replaced everywhere except rename_page.
2015-07-10[IMP] web_editor: adapt css, js and xml to use web_editorChristophe Matthieu
2015-05-19[FIX] website: Open edit menu dialogJigar Patel
2015-04-17[MERGE] forward port of branch saas-6 up to e941c0fChristophe Simonis
2015-04-08[FIX] website: allow to rename a website page.Jeremy Kersten
Code from delete_page has been spliited (functions, templates, ...) to be re-usable by rename_page Change default input type from website.prompt. Old default value 'text' had no sense, there are no tag <text>.
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-03-17[IMP] website_blog : onboarding. The cover image of a blog post is editable ↵Hitesh Trivedi
(opacity, color, size, ...). Add a new tour, views improvements and new default images
2015-02-11[IMP] website: menu editor open a modal to select the menu to edit if more ↵Christophe Matthieu
of one menu in the page (like event)
2015-01-29[IMP] website: allow to delete page - fix 440 - forum Q47292Jeremy Kersten
2015-01-05[IMP] website: use the new summernote editorChristophe Matthieu
2014-12-17[ADD] Add the website_links module.Julien De Coster
This module tracks clicks in mass mailing mails and allow the generation of trackable links in a website interface. Modules modifications --------------------- Refractoring of the crm_tracking_* classes in a new module. * Extract the crm_tracking_* from the crm module into a new module "utm" * Remove the crm_mass_mailing bridge module * New dependencies of mass_mailing and website_links to utm.
2014-07-02[FIX] website: customize menu stay empty if it's open to quick. Don't throw ↵Christophe Matthieu
an exception when the tour have an error: log error and close tour.
2014-06-27[MERGE] backend front end integrationSimon Lejeune
Render the top-menu (backend menu or frontend editbar) server-side. Use Fontawesome icons (mail, timezone, chat). Refactor website widgets, split Website.editorBarin editorbar, ace, editorbar- content, editorbarCustomize.