Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
chore(timepicker): minor style change
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Apr 16, 2014
1 parent 1a5239a commit 64be0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timepicker/timepicker.js
Expand Up @@ -183,8 +183,8 @@ angular.module('mgcrea.ngStrap.timepicker', ['mgcrea.ngStrap.helpers.dateParser'
else if(evt.keyCode === 39) selectedIndex = selectedIndex < count - 1 ? selectedIndex + 1 : 0;
}

var selectRange = [0,hoursLength];
// Update values (up, down)
var selectRange = [0, hoursLength];
if(selectedIndex === 0) {
if(evt.keyCode === 38) newDate.setHours(hours - parseInt(options.hourStep, 10));
else if(evt.keyCode === 40) newDate.setHours(hours + parseInt(options.hourStep, 10));
Expand Down

0 comments on commit 64be0d3

Please sign in to comment.