Permalink
Browse files

fix: 多语datetimepicker-月份中英文切换

  • Loading branch information...
1 parent 09af3e0 commit e7935b0a254fd082d2a6701b4c128c928e33e991 @onvno onvno committed Jan 5, 2017
Showing with 12 additions and 12 deletions.
  1. +12 −12 js/neoui-datetimepicker.js
@@ -299,18 +299,18 @@ DateTimePicker.fn._fillMonth = function(){
'<div class="u-date-content-title-time"></div>',*/
'</div>',
'<div class="u-date-content-panel">',
- '<div class="u-date-content-year-cell">1月</div>',
- '<div class="u-date-content-year-cell">2月</div>',
- '<div class="u-date-content-year-cell">3月</div>',
- '<div class="u-date-content-year-cell">4月</div>',
- '<div class="u-date-content-year-cell">5月</div>',
- '<div class="u-date-content-year-cell">6月</div>',
- '<div class="u-date-content-year-cell">7月</div>',
- '<div class="u-date-content-year-cell">8月</div>',
- '<div class="u-date-content-year-cell">9月</div>',
- '<div class="u-date-content-year-cell">10月</div>',
- '<div class="u-date-content-year-cell">11月</div>',
- '<div class="u-date-content-year-cell">12月</div>',
+ '<div class="u-date-content-year-cell">'+ udate._jsonLocale.monthsShort[0] +'</div>',
+ '<div class="u-date-content-year-cell">'+ udate._jsonLocale.monthsShort[1] +'</div>',
+ '<div class="u-date-content-year-cell">'+ udate._jsonLocale.monthsShort[2] +'</div>',
+ '<div class="u-date-content-year-cell">'+ udate._jsonLocale.monthsShort[3] +'</div>',
+ '<div class="u-date-content-year-cell">'+ udate._jsonLocale.monthsShort[4] +'</div>',
+ '<div class="u-date-content-year-cell">'+ udate._jsonLocale.monthsShort[5] +'</div>',
+ '<div class="u-date-content-year-cell">'+ udate._jsonLocale.monthsShort[6] +'</div>',
+ '<div class="u-date-content-year-cell">'+ udate._jsonLocale.monthsShort[7] +'</div>',
+ '<div class="u-date-content-year-cell">'+ udate._jsonLocale.monthsShort[8] +'</div>',
+ '<div class="u-date-content-year-cell">'+ udate._jsonLocale.monthsShort[9] +'</div>',
+ '<div class="u-date-content-year-cell">'+ udate._jsonLocale.monthsShort[10] +'</div>',
+ '<div class="u-date-content-year-cell">'+ udate._jsonLocale.monthsShort[11] +'</div>',
'</div>',
'</div>'].join("");

0 comments on commit e7935b0

Please sign in to comment.