summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2019-10-08 14:53:06 +0000
committerJeremy Kersten <jke@odoo.com>2019-10-08 15:04:54 +0000
commit8488e6c871eba7c71915ee14a15852834a26c8be (patch)
tree765cd0fcf9d0fb8ee9831ee7a13880522c13532d
parent473403792ed8ded50a1ca00b2f3eaabe3a2a10f7 (diff)
[FIX] web_editor: don't show warning relative url for new menu item
Before this commit, we hide the 'relative warning' when you don't start you url with the current location. Now we show it only when you start your url with the current location. Before this commit, when you create a new link, the warning was shown until you type a first char in the input to trigger the input change. + some small design theme (label font weight, muted color, ...) closes odoo/odoo#38224 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
-rw-r--r--addons/web_editor/static/src/xml/wysiwyg.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/xml/wysiwyg.xml b/addons/web_editor/static/src/xml/wysiwyg.xml
index 4c5ffaa50c2..f48f2474672 100644
--- a/addons/web_editor/static/src/xml/wysiwyg.xml
+++ b/addons/web_editor/static/src/xml/wysiwyg.xml
@@ -440,9 +440,9 @@
<label class="col-form-label col-md-3" for="o_link_dialog_url_input">URL or Email</label>
<div class="col-md-9">
<input type="text" name="url" class="form-control" id="o_link_dialog_url_input" required="required"/>
- <div class="form-check text-muted o_strip_domain">
+ <div class="form-check o_strip_domain d-none">
<input type="checkbox" id="o_link_dialog_url_strip_domain" checked="checked" class="form-check-input"/>
- <label for="o_link_dialog_url_strip_domain" class="form-check-label">
+ <label for="o_link_dialog_url_strip_domain" class="form-check-label font-weight-normal">
Autoconvert to relative link
</label>
</div>