fixed now highlight

This commit is contained in:
g00fy-
2013-10-14 10:21:56 +02:00
parent d52b9129af
commit e367fc670c
4 changed files with 15 additions and 8 deletions

View File

@@ -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':