summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/view_list_editable.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/view_list_editable.js')
-rw-r--r--addons/web/static/src/js/view_list_editable.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/addons/web/static/src/js/view_list_editable.js b/addons/web/static/src/js/view_list_editable.js
index 512fc4ff373..1a06720a274 100644
--- a/addons/web/static/src/js/view_list_editable.js
+++ b/addons/web/static/src/js/view_list_editable.js
@@ -515,10 +515,6 @@ openerp.web.list_editable = function (instance) {
};
} else if (document.body.createTextRange) {
throw new Error("Implement text range handling for MSIE");
- var sel = document.body.createTextRange();
- if (sel.parentElement() === el) {
-
- }
}
// Element without selection ranges (select, div/@contenteditable)
return null;
@@ -697,7 +693,7 @@ openerp.web.list_editable = function (instance) {
throw new Error("Editor delegate's #edition_view must have a" +
" non-empty arch")
}
- if (!(arch.tag === "form")) {
+ if (arch.tag !== "form") {
throw new Error("Editor delegate's #edition_view must have a" +
" 'form' root node");
}