Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
monishdeb committed Jul 12, 2018
1 parent 9972fa8 commit 41134fd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions js/crm.datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,12 @@
el.last().focus();
}
}
else {
else if (key === "ArrowDown") {
$('.ui-datepicker-close').focus();
}
else {
$('.ui-datepicker-month').focus();
}
}
else if ($(target).hasClass('ui-datepicker-month')) {
nextMonth = (key === "ArrowUp") ? parseInt($(target).val()) - 1 : parseInt($(target).val()) + 1;
Expand All @@ -171,9 +174,9 @@
}
else if (key === 'Enter') {
if ($(target).hasClass('ui-datepicker-close')) {
$('input', calender).focus();
calender.hide();
event.preventDefault();
//$('input', calender).focus();
//calender.hide();
//event.preventDefault();
}
}
});
Expand Down

0 comments on commit 41134fd

Please sign in to comment.