summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/view_list_editable.js
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2013-07-25 12:07:49 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2013-07-25 12:07:49 +0200
commit42e493e73efd603002feb92703a82f34c6bc6aea (patch)
tree32a49385764688e013f12d849231996c9d8f0358 /addons/web/static/src/js/view_list_editable.js
parentb105770bbc0f545a4dfd0482b5b310f534fc1033 (diff)
Added Gruntfile with jshint and corrected most js errors
bzr revid: nicolas.vanhoren@openerp.com-20130725100749-0i82gf3k3nvt4r44
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");
}