summaryrefslogtreecommitdiff
path: root/addons/website/static/src
AgeCommit message (Collapse)Author
2019-04-18[IMP] website: make hamburger menu scrollable in small devicesDharmraj Jhala
Currently, in small devices, hamburger menu of the cloned navbar is not scrollable due to fixed position. This commit improves the behavior and makes the affixed navbar scrollable, enabling user to navigate through all the available menus. task-1938637 closes odoo/odoo#32359 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-04-05[IMP] website: improvements in SEO dialogParth Choksi
In this commit, we have changed behaviour of SEO dialog. Now when you keep title and description fields empty, then the page will use default title and description. We have added default_title and default_description to render the preview with default values when title and description fields are empty in SEO dialog. Task ID:1949636 closes odoo/odoo#32449 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-04-05[FIX] website: allow empty strings in title and meta descriptionParth Choksi
Before this commit, In SEO dialog once you set the title and description, it was not possible to reset title and description. The reason behind the issue was, update method was taking title and description from DOM instead of dialog inputs. After this commit, you will be able to save empty strings in the title and description. Once user will do this, the page will use default title. Task ID:1949636
2019-04-05[FIX] website: rendering 1 preview instead of 2 in SEO dialogParth Choksi
Before this commit, In dialog box of Optimize SEO, we were getting 2 previews. This fix will remove the rendering of extra preview. Task ID:1949636
2019-04-16[IMP] website: improve UX for logo/font size changingjpr-odoo
This removes the 'V' box and it now validates the entered value when the user clicks outside the box. task-1952964 closes odoo/odoo#32291 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-04-12[MERGE] forward port branch saas-12.3 up to 120359bf0c9Christophe Simonis
2019-04-05[MERGE] forward port branch saas-12.2 up to f2be461f090Christophe Simonis
2019-04-05[MERGE] forward port branch saas-12.1 up to f2d0995362cChristophe Simonis
2019-04-04[MERGE] forward port branch 12.0 up to 251021796c2Christophe Simonis
2019-04-03[FIX] web_editor: restore ace styleMartin Geubelle
The recent refactoring odoo/odoo@f296992 wrongly moved the ace editor style from `web_editor` to `website`, even though ace is in `«eb_editor`. The editor is also used in Studio (which does not depend on website) so the style was missing in this case. Task 1951290 closes odoo/odoo#32384 Signed-off-by: Christophe Matthieu <Gorash@users.noreply.github.com>
2019-04-10[IMP] website: properly show navbar on iPadSapan Zaveri
Currently, when we open the website on iPad, the navbar is not displayed properly (systray items are overlapping on the website menu). This commit fixes the issue by using '+' icon on the navbar top menus if there is not ample space. This commit also converts multi company selector with 'fa-building' and multi website selector with 'fa-globe' icons on smaller screens. task-1945020 closes odoo/odoo#32321 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-03-29[MERGE] forward port branch saas-12.1 up to c0cf4049b2aChristophe Simonis
2019-03-29[MERGE] forward port branch 12.0 up to 09fb2469b49Christophe Simonis
2019-03-29[FIX] website: "Visits" no overlap "active users" in dashboardNicolas Lempereur
The current style on "Active users: {number}" placed it 60 pixels over were it should be, so this was: - overlapping "Visits" title - not sparing vertical size (since we use "position:relative") opw-1961605 closes #32245 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-03-21[FIX] web_editor: prevent overriding of toolbar CSS by themesAntoine Guenet
While waiting for a larger fix of the themes, force prevent overriding of the web editor's UI CSS by themes. This is achieved by applying `!important` on all web editor UI CSS. This is a temporary fix until the themes CSS is fixed and/or the new web editor library is ready. closes odoo/odoo#31721 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-03-21[MERGE] forward port branch saas-12.1 up to 6878c9f3424Christophe Simonis
2019-03-19[MERGE] forward port branch 12.0 up to 82c4393fd02Christophe Simonis
2019-03-19[FIX] website: facebook page id regexpJulien (juc) Castiaux
Some valid facebook pages appear as broken by the preview although they load perfectly fine afterward. At facebook, an id is required to perform requests to their graphql endpoints. The ID is part of the URL of the page, sometime (like Odoo) the ID is the name of the page and sometime (like LACME France) it is a generated 9-digits id shown in the URL after the name of the page. Example of two valid page URL and their page ID: https://www.facebook.com/Odoo ^^^^ ---- https://www.facebook.com/LACME-France-910072559192969 ^^^^^^^^^^^^^^^ ---------------------------- `^` denotes the page id and what odoo uses as page id after the commit `-` denotes what odoo used as page id before the commit opw-19494444 closes odoo/odoo#31922 Signed-off-by: Julien Castiaux <Julien00859@users.noreply.github.com>
2019-03-18[FIX] web_editor: properly start website edit mode as restricted editorAntoine Guenet
It was impossible to open the website's edit mode as a user with "restricted editor" permissions. The reason was that wysiwyg_multizone was trying to manipulate data that is not injected into the html node when `editable` is false (see `website.layout` template). closes odoo/odoo#31702 Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2019-03-14[FIX] website: restore ace editor resize and line numbersAndrea Ulliana
Following the new editor's merge at https://github.com/odoo/odoo/pull/29775, the gutter in ACE Editor was broken. We were not able to resize and view the line numbers anymore. closes odoo/odoo#31838 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-04-08[FIX] website_form_editor: fix dependenciesJeremy Kersten
2019-03-11[MERGE] forward port branch saas-12.1 up to 2b3296bbf8bChristophe Simonis
2019-03-08[MERGE] forward port branch 12.0 up to c023d0784f2Christophe Simonis
2019-02-26[FIX] website{,_sale}: adapt tours to new html editorChristophe Simonis
See f296992317e96562c66bd7ad59a5080d6c551ed5
2019-02-26[FIX] website{,_sale}: avoid tour dependence on portalChristophe Simonis
See 6521cf4f662a62912b54f52a1236935634913053
2019-02-22[MERGE] forward port branch saas-12.1 up to 0f4abc5c228Christophe Simonis
2019-02-21[MERGE] forward port branch 12.0 up to 84143a34b31Christophe Simonis
2019-03-07[FIX] website: edition of links on safari and firefox is now possibleGorash
closes odoo/odoo#31629 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-04-01[IMP] website: use Chart.js in community dashboardMathieu Duckerts-Antoine
This commit is one part of the task 'removing nvd3'. We use now Chart.js to draw charts. Task ID: 1946138
2019-04-01[MERGE] forward port branch saas-12.2 up to 18c735361a6Christophe Simonis
2019-03-29[IMP] website_blog, *: improve social links visualqsm-odoo
* website Use real social colors which makes the blogs look more modern. Introduce the colors for github, instagram and youtube. Part of https://github.com/odoo/odoo/pull/31749 task-1948882
2019-03-29[IMP] website_sale, *: add products searchbar snippetAndrea Ulliana
* website When the e-commerce is installed, you can now add a new snippet that can be dropped anywhere: a search bar to search for products with an autocomplete feature. That snippet is also used as default "/shop" search bar. Finally, you have the possibility to customize the snippet via snippet options. task-1866973 closes odoo/odoo#30366 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by: qsm-odoo <qsm@odoo.com>
2019-03-25[MERGE] forward port branch saas-12.2 up to 230ad8c381eChristophe Simonis
closes odoo/odoo#32088 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-03-18[FIX] website: restore default h1 color in customize dialogqsm-odoo
Since the bootstrap update that was merged with https://github.com/odoo/odoo/commit/754ec4450832dceef83c3a0abb79401f2e7ec05d the customize theme dialog was showing transparent colors for the headings. This was because bootstrap changed the value of the related variable from 'inherit' to 'null' to avoid an useless css rule if the headings are supposed to have the same color as the body text. closes odoo/odoo#31909 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-03-15[FIX] website: restore broken promises in websiteqsm-odoo
Since the switch to jQuery 3, Odoo uses native promises in its JS. Some mistakes were made in the website app during conversion from old jQuery deferred to native promises. - `this` -> `self` when wrapping in a promise - `.always(fct)` -> `.then(fct).guardedCatch(fct)` - a function returned sometimes a jQuery deferred, sometimes a native promise. This made the caller fail when using `always` or fail when using `guardedCatch` closes odoo/odoo#31887 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-03-13[MERGE] forward port branch saas-12.2 up to c9f832d9f03Christophe Simonis
closes odoo/odoo#31790 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-03-06[REF] website: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
2019-02-19[FIX] website: avoid double start editionChristophe Matthieu
issue: 'enable_editor' and click on 'edit' before loading edition, or double click on 'edit'
2019-02-19[FIX] website: hide edit menu when the user click on save an wait reloadChristophe Matthieu
2019-02-19[FIX] website: remove 'enable_editor' from the URL before editionChristophe Matthieu
2019-02-19[FIX] web_editor: speeder edition of field char on website_blogChristophe Matthieu
Before this fix, the customize button was updated with each character, which slowed down the fast insertion of characters and used resources unnecessarily.
2019-02-18[FIX] website: don't not edit not editable contents or branded hr, br...Christophe Matthieu
2019-02-15[REF] website: remove useless codeqsm-odoo
Part of https://github.com/odoo/odoo/commit/f4ba72a7593b67595852fc52ec0997d3276dbc67 became useless after forward-port in the new editor. Indeed, that commit handled what happened with data-editor-message attributes on save but as the new editor can discard changes without reloading the page, the forward-port of that commit made the code handle the attribute removal on editor *close*. closes odoo/odoo#31143
2019-02-14[IMP] web_editor: lazy load the wysiwygChristophe Matthieu
Issue: wysiwyg asset slow down the loading of the website, error inadvertently introduced: https://github.com/odoo/odoo/pull/29775 The assets are now loaded assynchroneously, when the editor is needed, its assets will be loaded. closes odoo/odoo#30700
2019-02-13[FIX] website: adapt tests to new editor and new html editorRomain Derie
Scss tour was broken due to recent task that shows only 2 new custom scss files if not in edit mode. As the tests was trying to read `website.ui.scss` that is now in debug mode in a filter, it would not be found. Html tour was broken due to new editor that changed the save process. For some reason, after the drag & drop of a snippet, clicking fast on save would not fire RPCs as it would not be considered as dirty. (Editor would then close, you would still see the modifications even if nothing was saved on DB) closes odoo/odoo#31067
2019-02-11[MERGE] forward port branch saas-12.1 up to 93d736e905eChristophe Simonis
2019-02-08[IMP] website, *: allow to control the header font-sizeqsm-odoo
* portal The user can now choose the font-size of its header menu items through the customize dialog. PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-08[IMP] website: allow negative dependencies in theme customize dialogqsm-odoo
Options and option sets can declare a data-depends attribute to specify which options need to be enabled for them to be displayed. With this commit, we allow specifying which options need to be *disabled* for the same purpose (we can now do that by prefixing the options IDs with '!'). PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-08[IMP] website, *: optimize scss customizationsqsm-odoo
* web_editor This commit's goal is to optimize the delay to make a scss customization thanks to the website customize dialog. Before this commit, the JS code took advantage of existing web_editor routes but this was far from efficient as this was done: 1) PY: Load all scss files used in the page 2) JS: Find the one we want to customize and adapt the scss content 3) PY: Create the scss customization with the new content (So two RPC (including one very slow) and content building in javascript) After this commit, this is done: 1) PY: Load the scss file being customized, adapt its content according to the new values and save the customization (So the whole logic is in python, requiring only one small RPC) This commit also take the opportunity to review the web_editor ace editor loading code (the logic is shared with website customizations). PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-08[IMP] website, *: add new logo sizing optionqsm-odoo
* portal, web This commit introduces the first of many-to-come non-color website user values: the logo height. Now, the user can choose it in the customize dialog. PR https://github.com/odoo/odoo/pull/29624 task-1904244