[ADD] Activated simple datepicker on date field
bzr revid: fme@openerp.com-20110331160323-opcovdlczzi6ugxs
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user