EasyUI Forum

General Category => General Discussion => Topic started by: anton.dutov on May 04, 2012, 01:54:45 AM



Title: A small suggestions.
Post by: anton.dutov on May 04, 2012, 01:54:45 AM
First
About one of a feaures In version 1.2.6
"calendar: Add 'firstDay' option that allow users to set first day of week. Sunday is 0, Monday is 1, ..."
usually this option depends on locale and may be calendar/datebox/datetimebox load defaults for this option from locale?

Second
I can support russian locale(see attach), can developers add it to base package?


Title: Re: A small suggestions.
Post by: stworthy on May 04, 2012, 02:32:58 AM
Yes, this locale file will be integrated into the next release. The 'firstDay' property default value can be integrated with locale package:

Code:
if ($.fn.calendar){
$.fn.calendar.defaults.firstDay = 1; // set the calendar first day to to monday
$.fn.calendar.defaults.weeks  = ['В','П','В','С','Ч','П','С'];
$.fn.calendar.defaults.months = ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'];
}


Title: Re: A small suggestions.
Post by: anton.dutov on May 04, 2012, 03:28:34 AM
Thanks a lot, please notice me when locale file format is changed (Usually i am review code fof new version, but i can forget).
Also thanks for changing behavior of form load (http://www.jeasyui.com/forum/index.php?topic=309.0)