Commit Graph
2735 Commits
Author SHA1 Message Date
Samuel Degueldre 6481d0b353 [REF] website, *: remove unused class oe_custom_bg
*: web_editor, website_forum, website_mass_mailing, website_slides

This class no longer does anything.

Part of odoo/odoo#41561
task-2155808

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-31 13:25:21 +00:00
Samuel Degueldre de6589619b [IMP] website, web_editor: migrate background options to use imagepicker
The previous commit introduced a new imagepicker uservaluewidget, which
allows the user to select a picture or video in a generic way, this
commit adapts the background and CoverProperties snippet options to make
use of this uservaluewidget instead of duplicating most of the logic.

Part of odoo/odoo#41561
task-2155808
2019-12-31 13:25:19 +00:00
Samuel Degueldre 38b5c759f3 [FIX] website: fix cover properties not saving properly
In 2cc8316c66, the cover properties snippet option was refactored to
using a single data attribute per select instead of repeating it on
every button inside of it. After selecting an option, the corresponding
data attribute would be set on the cover container by finding the
currently active button and copying its select class attribute.

However, because of an oversight, instead of finding the currently active
button inside the select, the option would find any active item inside
of the select, and because the select is always open when a button
inside is clicked, the first active item inside of the select is its
toggler.

This commit fixes that by increasing the specificity of the selector
that finds the active button to only find buttons, and not the
select-menu toggler.

closes odoo/odoo#42567

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-01-02 11:08:46 +00:00
Hiral Bhavsar 78a64fed28 [FIX] website: display correct website logo on SEO dialog
Currently, the website logo is not displayed on SEO dialog and instead the
company logo is being displayed.

After recent changes (see [1]), company logo and website logo are now
different and so changes were not adapted on the website.

This commit fixes the issue by adapting the changes and displaying the
correct website logo on the SEO dialog.

[1] - https://github.com/odoo/odoo/commit/8be4567ae8f6b0388206c091590278ef11a2df21

task-2083006

closes odoo/odoo#42391

X-original-commit: 9c75960e931bc77530074f60997cced4b5907d3e
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-26 11:39:59 +00:00
Samuel Degueldre 7511f34c2b [IMP] website, website_blog: change stretch option to add smaller size
This commit adds the width of blog posts to the "Stretch" snippet option
(previously, only full width aka container-fluid and regular container
were allowed, hence the name), as such it has been renamed to width.
Some code in website_blog has been adapted to reuse that class, such
that the width of the small container can be adjusted and website and
website blog will stay consistent with one another.

task-2155513

closes odoo/odoo#41844

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-24 08:45:59 +00:00
Benjamin Vray 03c52a23c1 [IMP] website: add new 'Product Catalog' snippet
Before this task, we had some menu snippets but they were not really
perfect and there were theme specific.

task-2091911

closes odoo/odoo#40169

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-24 09:51:38 +00:00
Samuel Degueldre bbf93a8085 [FIX] website: fix snippet animations not being destroyed before clone
In a80775ce3c, some code was refactored to stop using the confusing
'animation' denomination, as in reality they were just public facing
widgets that did many things, such as loading data based on
data-attributes and other things that were not always animation related.
One instance of the animation_stop_demand event was not renamed in the
_onSnippetWillBeCloned method, which creates some problems, one of which
being that the facebook snippet's iframe wouldn't be destroyed on clone,
but since the animation was started after the clone, this would result
in one facebook page snippet with two iframes with the facebook page,
for a total of 3 instead of 2, and one of these was unconfigurable.

This commit renames the event to restore the proper behavior.

closes odoo/odoo#42311

X-original-commit: 2a671f47f87e2bb52a5fade11ea6b79070516694
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-23 15:49:09 +00:00
Samuel Degueldre a36c1cca08 [IMP] website: move facebook page snippet options in left panel
Before this commit, the configuration of the facebook page snippet was
done in a modal window. In an effort to streamline and unify snippet
options, the configuration has been moved into the left panel.

task-2146928

closes odoo/odoo#41104

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-18 15:12:47 +00:00
Jeremy Kersten 5a25b7dc87 [IMP] website: add new s_popup snippet
task-2118794

closes odoo/odoo#42207

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-12-23 13:36:35 +00:00
Jason Van Malder 073839c6ce [FIX] website: fix background video widget on mobile
Issue

    - Download the customer db: stargue-inc
    - Go on the website in mobile mode

    Traceback & the second item in the carousel is not displayed.

Cause

    Traceback: we use `this.$iframe` without checking if it's defined
    Second item not displayed: the first video promise is overriden
    by the second video promise.

Solution

    Check if this.$iframe is defined and resolve the old promise
    instead of overriding it.

OPW-2152690

closes odoo/odoo#42139

X-original-commit: f5f569b4705f37865cb976a4df10a0d9f388fae2
Signed-off-by: Jason Van Malder <jvm-odoo@users.noreply.github.com>
2019-12-18 10:20:44 +00:00
qsm-odoo 04bd016116 [FIX] website, *: fix tabs breaking when increasing number of columns
* web_editor

Previously, increasing the number of columns on the tabs snippet would
cause the newly created tabs to toggle the original tabs instead of its
own, this was caused by an oversight where the columns were clone
directly using jQuery, and the snippets' the onClone method was not
called on the newly created columns (here, tabs). This commit move the
responsibility to clone onto the SnippetsMenu so that it can create the
appropriate snippetEditor if needed and call its onClone method.

task-2070643

closes odoo/odoo#42130

X-original-commit: 77ebadfe6ada8ad1fa4d6e476b9534f252499d92
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-18 13:16:31 +00:00
Ivan Yelizariev d807e07949 [FIX] website: use localized date format
If getLangDateFormat is called right in loading the js file, it returns
default format. We now call it when translations are ready.

closes odoo/odoo#42126

X-original-commit: e7a58430a382ca1161131e562d53bef3ea0e6ce0
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2019-11-18 15:31:46 +00:00
qsm-odoo d63beb924b [FIX] website: s_title scss should have been moved in a dedicated file 2019-12-18 03:35:22 +01:00
qsm-odoo 38bf4eb10f [REF] fake move of website.scss 2019-12-18 03:33:25 +01:00
qsm-odoo f1af91584c [REF] move history of website.scss to s_title 2019-12-18 03:33:24 +01:00
qsm-odoo 7e8396e6fe [REF] website: move s_quotes_carousel snippet to dedicated files 2019-12-18 03:23:07 +01:00
qsm-odoo c85a5d9b8f [REF] fake move of snippets.xml and website.scss 2019-12-18 03:20:37 +01:00
qsm-odoo 514c358dee [REF] move history of xml/scss to s_quotes_carousel files 2019-12-18 03:20:03 +01:00
qsm-odoo e714accfd6 [REF] website: move s_chart snippet to dedicated files 2019-12-18 03:12:23 +01:00
qsm-odoo 30aa2ee339 [REF] fake move of snippets.xml and options/animations.js 2019-12-18 03:05:35 +01:00
qsm-odoo a8305af1b3 [REF] move history of xml/js to s_chart files 2019-12-18 03:04:42 +01:00
qsm-odoo 05d70bd6d4 [REF] website: move s_features_grid snippet to dedicated files 2019-12-18 02:59:33 +01:00
qsm-odoo 03a1880e84 [REF] fake move of snippets.xml and website.scss 2019-12-18 02:57:19 +01:00
qsm-odoo 2e242386fb [REF] move history of xml/scss to s_features_grid files 2019-12-18 02:56:58 +01:00
qsm-odoo 46cdb3e4c7 [REF] website: move s_faq_collapse to dedicated files 2019-12-18 02:55:13 +01:00
qsm-odoo aee452da48 [REF] fake move of snippets.xml and website.scss 2019-12-18 02:53:06 +01:00
qsm-odoo 049dcc764f [REF] move history of xml/scss to s_faq_collapse files 2019-12-18 02:52:31 +01:00
qsm-odoo 6dcff16313 [REF] website: move s_references snippet to dedicated files 2019-12-18 02:50:24 +01:00
qsm-odoo 099b4aa16b [REF] fake move of snippets.xml and website.scss 2019-12-18 02:47:52 +01:00
qsm-odoo 9bfecb7870 [REF] move history of xml/scss to s_references files 2019-12-18 02:47:28 +01:00
qsm-odoo 76aeea4891 [REF] website: move s_company_team snippet to dedicated files 2019-12-18 02:40:33 +01:00
qsm-odoo f710979b61 [REF] fake move of snippets.xml and website.scss 2019-12-18 02:38:25 +01:00
qsm-odoo 2ee438896d [REF] move history of xml/scss to s_company_team files 2019-12-18 02:37:59 +01:00
qsm-odoo 70717ab713 [REF] website: move s_comparisons snippet to dedicated files 2019-12-18 02:35:17 +01:00
qsm-odoo 0b7cbc6087 [REF] fake move of snippets.xml and website.scss 2019-12-18 02:32:41 +01:00
qsm-odoo 98fd1f98ea [REF] move history of xml/scss to s_comparisons files 2019-12-18 02:31:50 +01:00
qsm-odoo 6134bbb26a [REF] website: move s_countdown snippet to dedicated files 2019-12-18 02:28:36 +01:00
qsm-odoo 554aebd876 [REF] fake move of snippets.xml and animation/options.js 2019-12-18 02:20:30 +01:00
qsm-odoo bb611b09d3 [REF] move history of xml/js to s_countdown files 2019-12-18 02:19:43 +01:00
qsm-odoo bb25b70a74 [REF] website: move s_image_gallery snippet to dedicated files 2019-12-18 02:14:51 +01:00
qsm-odoo 885a015b8a [REF] fake move of snippets.xml, website.scss and animation/options.js 2019-12-18 02:05:05 +01:00
qsm-odoo b0c220536c [REF] move history of xml/css/js to s_image_gallery files 2019-12-18 02:04:09 +01:00
qsm-odoo 4061543689 [REF] website: move s_facebook_page snippet to dedicated files 2019-12-18 01:58:28 +01:00
qsm-odoo ade78eda64 [REF] fake move of snippets.xml, website.scss and animation/options.js 2019-12-18 01:43:51 +01:00
qsm-odoo c03f5845dd [REF] move history of xml/css/js to s_facebook_page files 2019-12-18 01:42:36 +01:00
qsm-odoo 6be021f2a2 [REF] website: move s_hr snippet to dedicated files 2019-12-18 01:37:11 +01:00
qsm-odoo e9a81b7a32 [REF] fake move of snippets.xml and website.scss 2019-12-18 01:32:24 +01:00
qsm-odoo 7106cd4306 [REF] move history of xml/css to s_hr files 2019-12-18 01:32:00 +01:00
qsm-odoo 9c3d1d3ba3 [REF] website: move s_btn snippet to dedicated files 2019-12-18 01:29:25 +01:00
qsm-odoo 3f1fcd9526 [REF] fake move of snippets.xml and website.scss 2019-12-18 01:27:09 +01:00