4856-worker.time-control #1375
|
@ -15,9 +15,9 @@ export default class Calendar extends FormInput {
|
||||||
constructor($element, $scope, vnWeekDays, moment) {
|
constructor($element, $scope, vnWeekDays, moment) {
|
||||||
super($element, $scope);
|
super($element, $scope);
|
||||||
this.weekDays = vnWeekDays.locales;
|
this.weekDays = vnWeekDays.locales;
|
||||||
this.defaultDate = Date.vnNew();
|
|
||||||
this.displayControls = true;
|
this.displayControls = true;
|
||||||
this.moment = moment;
|
this.moment = moment;
|
||||||
|
this.defaultDate = Date.vnNew();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -38,6 +38,7 @@ export default class Calendar extends FormInput {
|
||||||
|
|
||||||
this._defaultDate = value;
|
this._defaultDate = value;
|
||||||
this.month = value.getMonth();
|
this.month = value.getMonth();
|
||||||
|
console.log('Llega');
|
||||||
this.repaint();
|
this.repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue