EasyUI Forum
October 13, 2024, 06:36:13 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: A small suggestions.  (Read 24484 times)
anton.dutov
Newbie
*
Posts: 27


View Profile
« 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?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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 = ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'];
}
Logged
anton.dutov
Newbie
*
Posts: 27


View Profile
« Reply #2 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)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!