diff options
| author | xO-Tx <mou@odoo.com> | 2021-01-13 16:08:21 +0000 |
|---|---|---|
| committer | xO-Tx <mou@odoo.com> | 2021-02-22 09:45:48 +0000 |
| commit | fc83af4b0b209ffc0ae3d117fd9865b68aa2f118 (patch) | |
| tree | 85381a0f3e9bfb39dd7f8ad069119d8e24c6bbe3 /addons/website_mass_mailing | |
| parent | d5d4eabed0695554c92b9abdb36d819ad8423d69 (diff) | |
[FIX] website_form, *: allow to update buttons using link dialog
*: web_editor, website_mass_mailing
When we double click a link/button, a link dialog appears
to update the target properties, and since the current link dialog
can only handle anchor targets, using it on buttons leads to some
inconsistencies :
- visible href options for button & url required to save changes.
- missing preview when button style changed.
...
The goal of this commit is to add a fix (with minimum of code) on
summernote linkdialog to handle button elements using the same logic as
anchor nodes.
Also, update website form test tour to test those new changes.
Part of https://github.com/odoo/odoo/pull/62206
task-2381305
Diffstat (limited to 'addons/website_mass_mailing')
| -rw-r--r-- | addons/website_mass_mailing/views/snippets_templates.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_mass_mailing/views/snippets_templates.xml b/addons/website_mass_mailing/views/snippets_templates.xml index bbfefbb93de..1c7c58e86dd 100644 --- a/addons/website_mass_mailing/views/snippets_templates.xml +++ b/addons/website_mass_mailing/views/snippets_templates.xml @@ -29,8 +29,8 @@ <div class="input-group"> <input type="email" name="email" class="js_subscribe_email form-control" placeholder="your email..."/> <span class="input-group-append"> - <a role="button" href="#" class="btn btn-primary js_subscribe_btn">Subscribe</a> - <a role="button" href="#" class="btn btn-success js_subscribed_btn d-none" disabled="disabled">Thanks</a> + <a role="button" href="#" class="btn btn-primary js_subscribe_btn o_submit">Subscribe</a> + <a role="button" href="#" class="btn btn-success js_subscribed_btn d-none o_submit" disabled="disabled">Thanks</a> </span> </div> </div> |
