The datapicker and the localization of names in the datapicher are connected to the site.

<script src="/Scripts/bootstrap-datepicker.js"></script> <script src="/Scripts/bootstrap-datepicker.ru.js"></script> 

an error is displayed in the browser console

 Uncaught TypeError: Cannot read property 'dates' of undefined bootstrap-datepicker.ru.js:6 (anonymous function) bootstrap-datepicker.ru.js:6 (anonymous function) 

alt text

and Russian names are not displayed, all English
JQuery version <script src="/Scripts/jquery-1.8.2.min.js"></script> ,
version changes on 1.10.2 did not help
What is the error and how to fix it?

  • everything works, mb. is your datepicker old? jsfiddle.net/oceog/E8Lvr there is a list of used scripts, - zb '14
  • Everything works in the layout, and when I connect to the project - this is the error. - Heidel

2 answers 2

Your localization file is corrupted, not fdatepicker, but datepicker, look here

  • but what should I do, I don't understand something? the file and in the layout in this form is displayed, but everything works there. - Heidel
  • one
    download bootstrap-datepicker.ru.js again. - zb '
  • Yes, in general, it was enough to remove this extra letter f from the file and it all worked, I do not know where it came from, thank you. - Heidel

pretty handy components for bootstrap 3 http://bootstrapformhelpers.com/ and the same datepicker made much more convenient

    Protected by spirit community member Jun 18 '16 at 19:52 .

    Thank you for your interest in this issue. Since he collected a large number of low-quality and spam responses, which had to be deleted, now it’s necessary to have 10 reputation points on the site (the bonus for account association is not counted ).

    Maybe you want to answer one of the unanswered questions ?