projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85ac428
)
[FIX] don't use 'undefined' as a fallback value for .attr, it makes jquery think...
author
Xavier Morel
<xmo@openerp.com>
Mon, 13 Feb 2012 10:05:43 +0000
(11:05 +0100)
committer
Xavier 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
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/search.js
b/addons/web/static/src/js/search.js
index
e347768
..
49fb60b
100644
(file)
--- 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);
},