From 042a5f823ddcfb291fe42165d57c9689527bbeb8 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 13 Feb 2012 11:05:43 +0100 Subject: [PATCH] [FIX] don't use 'undefined' as a fallback value for .attr, it makes jquery think that's a get and breaks chaining bzr revid: xmo@openerp.com-20120213100543-0zu2ij95tnufu5df --- addons/web/static/src/js/search.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index e34776896d8..49fb60b99ac 100644 --- a/addons/web/static/src/js/search.js +++ b/addons/web/static/src/js/search.js @@ -967,8 +967,7 @@ openerp.web.search.DateField = openerp.web.search.Field.extend(/** @lends opener this.datewidget.prependTo(this.$element); this.datewidget.$element.find("input") .attr("size", 15) - .attr("autofocus", this.attrs.default_focus === '1' ? - 'autofocus' : undefined) + .attr("autofocus", this.attrs.default_focus === '1' ? 'autofocus' : null) .removeAttr('style'); this.datewidget.set_value(this.defaults[this.attrs.name] || false); },