summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-07-09 11:09:56 +0000
committerqsm-odoo <qsm@odoo.com>2020-07-14 14:43:16 +0000
commitbb0cd4d5c82a9c2311f8c45ced0e9fdc0397d292 (patch)
tree80520cf8ff73d5e1fc0ee1fcbd74421394ac93ab /doc
parentd23a9c1954a79c4a9b49ad1319f4cf30514a9230 (diff)
[IMP] web_editor, *: review background color/image options UI
*: website, mass_mailing, website_blog, doc Part of https://github.com/odoo/odoo/pull/53930 task-2157252
Diffstat (limited to 'doc')
-rw-r--r--doc/howtos/themes.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/howtos/themes.rst b/doc/howtos/themes.rst
index 3acf3d1531e..d7428997620 100644
--- a/doc/howtos/themes.rst
+++ b/doc/howtos/themes.rst
@@ -763,7 +763,7 @@ We start by adding a new file in our views folder - name it **options.xml** and
.. code-block:: xml
<template id="snippet_testimonial_opt" name="Snippet Testimonial Options" inherit_id="website.snippet_options">
- <xpath expr="//div[@data-js='background']" position="after">
+ <xpath expr="//div[@data-js='parallax']" position="after">
<div data-selector=".snippet_testimonial"> <!-- Options group -->
<div class="dropdown-submenu">
<a href="#" class="dropdown-item">Your Option</a>
@@ -862,7 +862,7 @@ the following code
.. code-block:: javascript
odoo.define(function (require) {
- var options = require('web_editor.snippets.options');
+ var options = require('web_editor.snippets.options');
});
Great, we successfully created our javascript editor file. This file will contain all the javascript functions used by our snippets in edit mode. Let’s create a new function for our testimonial snippet using the ``snippet_testimonial_options`` method that we created before.
@@ -870,7 +870,7 @@ Great, we successfully created our javascript editor file. This file will contai
.. code-block:: javascript
odoo.define(function (require) {
- var options = require('web_editor.snippets.options');
+ var options = require('web_editor.snippets.options');
options.registry.snippet_testimonial_options = options.Class.extend({
onFocus: function () {
alert("On focus!")