summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/widgets/widgets.js2
-rw-r--r--addons/web_editor/static/src/less/web_editor.common.less6
2 files changed, 1 insertions, 7 deletions
diff --git a/addons/web_editor/static/src/js/widgets/widgets.js b/addons/web_editor/static/src/js/widgets/widgets.js
index 8f3d44ec75e..d25f1c631e2 100644
--- a/addons/web_editor/static/src/js/widgets/widgets.js
+++ b/addons/web_editor/static/src/js/widgets/widgets.js
@@ -1184,7 +1184,7 @@ var LinkDialog = Dialog.extend({
}
}
- if (!test && (!val || !$e[0].checkValidity())) {
+ if (!test && $e.prop('required') && (!val || !$e[0].checkValidity())) {
// FIXME: error message
$e.closest('.form-group').addClass('has-error');
$e.focus();
diff --git a/addons/web_editor/static/src/less/web_editor.common.less b/addons/web_editor/static/src/less/web_editor.common.less
index c48fdf7df46..57c06c6f513 100644
--- a/addons/web_editor/static/src/less/web_editor.common.less
+++ b/addons/web_editor/static/src/less/web_editor.common.less
@@ -145,12 +145,6 @@ span[data-oe-type="monetary"] {
// Menus
// TODO should not be here but used by web_studio so must stay here for now
ul.oe_menu_editor {
- .fa-home {
- display: none;
- }
- > li:first-child > div > span > .fa-home {
- display: block;
- }
.oe_menu_placeholder {
outline: 1px dashed #4183C4;
}