Fix datepicker date-format as yy-mm-dd

XE에서 한국어 언어 파일을 이용해서 사실상 yy-mm-dd 만을 날짜 형식으로 사용했기 때문에, 다국어를 지원하면서 나라마다
다른 형식을 풀어주게 되면, 호환성 문제가 있을 수 있어서 형식을 강제함.
This commit is contained in:
MinSoo Kim 2016-04-14 19:30:52 +09:00
parent 575279b1e8
commit bd482c6881
2 changed files with 12 additions and 3 deletions

View file

@ -3,5 +3,11 @@
* @author MinSoo Kim <misol.kr@gmail.com>
**/
if(typeof current_lang !== "undefined" && current_lang !== 'en') {
jQuery.getScript(request_uri + "./common/js/plugins/ui/i18n/datepicker-"+ current_lang.replace("jp", "ja") +".js");
jQuery.getScript(request_uri + "./common/js/plugins/ui/i18n/datepicker-"+ current_lang.replace("jp", "ja") +".js", function() {
var default_option = {
dateFormat:'yy-mm-dd'
};
jQuery.extend(jQuery.datepicker.regional[current_lang.replace("jp", "ja")],default_option);
jQuery.datepicker.setDefaults( datepicker.regional[current_lang.replace("jp", "ja")] );
});
}