Skip to content

Commit

Permalink
Merge pull request #734 from adelegard/nan_firefox_fix
Browse files Browse the repository at this point in the history
Fixing the ui displaying 'undefined nan' when typing dates in Firefox & IE
  • Loading branch information
acrobat committed Dec 13, 2014
2 parents d003979 + f3a7708 commit 86f9152
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/bootstrap-datepicker.js
Expand Up @@ -745,6 +745,7 @@
todaytxt = dates[this.o.language].today || dates['en'].today || '',
cleartxt = dates[this.o.language].clear || dates['en'].clear || '',
tooltip;
if (isNaN(year) || isNaN(month)) return;
this.picker.find('.datepicker-days thead th.datepicker-switch')
.text(dates[this.o.language].months[month]+' '+year);
this.picker.find('tfoot th.today')
Expand Down

0 comments on commit 86f9152

Please sign in to comment.