mirror of
https://github.com/HackPlan/angular-datepicker.git
synced 2026-06-17 02:25:03 +08:00
fixed now highlight
This commit is contained in:
@@ -263,7 +263,10 @@ Module.directive('datePicker', function datePickerDirective(datePickerConfig) {
|
||||
var now = scope.now;
|
||||
//noinspection FallThroughInSwitchStatementJS
|
||||
switch (scope.view) {
|
||||
case 'hour':
|
||||
case 'minutes':
|
||||
is &= ~~(date.getMinutes()/step) === ~~(now.getMinutes()/step);
|
||||
/*falls through*/
|
||||
case 'hours':
|
||||
is &= date.getHours() === now.getHours();
|
||||
/*falls through*/
|
||||
case 'date':
|
||||
|
||||
Reference in New Issue
Block a user