diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 73f8d12..e3ea836 100755 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -197,6 +197,13 @@ "Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör" ] }, + km: { // Khmer + months: [ + "មករា​", "កុម្ភៈ", "មិនា​", "មេសា​", "ឧសភា​", "មិថុនា​", "កក្កដា​", "សីហា​", "កញ្ញា​", "តុលា​", "វិច្ឋិកា​", "ធ្នូ​" + ], + dayOfWeekShort: ["អាទិ​", "ចន្ទ​", "អង្គារ​", "ពុធ​", "ព្រហ​​", "សុក្រ​", "សៅរ៍"], + dayOfWeek: ["អាទិត្យ​", "ចន្ទ​", "អង្គារ​", "ពុធ​", "ព្រហស្បតិ៍​", "សុក្រ​", "សៅរ៍"] + }, kr: { // Korean months: [ "1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월" @@ -1193,7 +1200,7 @@ } else { var splittedHours = +([$(this).val()[0], $(this).val()[1]].join('')), splittedMinutes = +([$(this).val()[2], $(this).val()[3]].join('')); - + // parse the numbers as 0312 => 03:12 if (!options.datepicker && options.timepicker && splittedHours >= 0 && splittedHours < 24 && splittedMinutes >= 0 && splittedMinutes < 60) { $(this).val([splittedHours, splittedMinutes].map(function (item) { @@ -1298,7 +1305,7 @@ else { _this.currentTime = _this.now(); } - + datetimepicker.trigger('xchange.xdsoft'); }; @@ -1522,7 +1529,7 @@ * jquery timebox.css('marginTop') will return the original value which is before you clicking the next/prev button, * meanwhile the timebox[0].style.marginTop will return the right value which is after you clicking the * next/prev button. - * + * * What we should do: * Replace timebox.css('marginTop') with timebox[0].style.marginTop. */ @@ -1548,10 +1555,10 @@ xchangeTimer = setTimeout(function () { if (_xdsoft_datetime.currentTime === undefined || _xdsoft_datetime.currentTime === null) { - //In case blanks are allowed, delay construction until we have a valid date + //In case blanks are allowed, delay construction until we have a valid date if (options.allowBlank) return; - + _xdsoft_datetime.currentTime = _xdsoft_datetime.now(); } @@ -1711,7 +1718,7 @@ optionDateTime = new Date(_xdsoft_datetime.currentTime); optionDateTime.setHours(h); optionDateTime.setMinutes(m); - classes = []; + classes = []; if ((options.minDateTime !== false && options.minDateTime > optionDateTime) || (options.maxTime !== false && _xdsoft_datetime.strtotime(options.maxTime).getTime() < now.getTime()) || (options.minTime !== false && _xdsoft_datetime.strtotime(options.minTime).getTime() > now.getTime())) { classes.push('xdsoft_disabled'); } else if ((options.minDateTime !== false && options.minDateTime > optionDateTime) || ((options.disabledMinTime !== false && now.getTime() > _xdsoft_datetime.strtotime(options.disabledMinTime).getTime()) && (options.disabledMaxTime !== false && now.getTime() < _xdsoft_datetime.strtotime(options.disabledMaxTime).getTime()))) {