[ADD] Activated simple datepicker on date field

bzr revid: fme@openerp.com-20110331160323-opcovdlczzi6ugxs
This commit is contained in:
Fabien Meghazi
2011-03-31 18:03:23 +02:00
parent 6de5177cf3
commit 6910a9c19a
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -413,6 +413,9 @@ body.openerp {
border-radius: 3px;
background: white;
}
.openerp input.field_date {
background: url('../img/ui/field_calendar.png') no-repeat right center;
}
/* Widgets */
.openerp .separator {
+4
View File
@@ -462,6 +462,10 @@ openerp.base.form.FieldDate = openerp.base.form.FieldChar.extend({
init: function(view, node) {
this._super(view, node);
this.template = "FieldDate";
},
start: function() {
this._super.apply(this, arguments);
this.$element.find('input').datepicker();
}
});