Beispiel #1
0
 inRange: function(date) {
   var range = this.get('range');
   if (date.month) {
     return isInRange(date, range);
   }
   if (date.toString().length < 3) {
     var time = this.get('focus');
     return isInRange(time.clone().month(date), range);
   }
   return isInRange(moment(date, this.get('format')), range);
 },
Beispiel #2
0
 focus: function(date) {
   date = moment(date, this.get('format'));
   this.dates.focus(date);
   this.months.focus(date);
   this.years.focus(date);
 },