[FIX] don't use 'undefined' as a fallback value for .attr, it makes jquery think...
authorXavier Morel <xmo@openerp.com>
Mon, 13 Feb 2012 10:05:43 +0000 (11:05 +0100)
committerXavier Morel <xmo@openerp.com>
Mon, 13 Feb 2012 10:05:43 +0000 (11:05 +0100)
bzr revid: xmo@openerp.com-20120213100543-0zu2ij95tnufu5df

addons/web/static/src/js/search.js

index e347768..49fb60b 100644 (file)
@@ -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);
     },