|
|
@ -38,6 +38,7 @@ $.fn.datepicker.makeTemplate = function(){
|
|
|
|
'</div>';
|
|
|
|
'</div>';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//한국어설정 추가, 기본설정 변경, 오늘버튼,지우기버튼 영역 수정
|
|
|
|
$.fn.datepicker.addKo = function(){
|
|
|
|
$.fn.datepicker.addKo = function(){
|
|
|
|
|
|
|
|
|
|
|
|
this.dates['ko'] = {
|
|
|
|
this.dates['ko'] = {
|
|
|
@ -65,6 +66,7 @@ $.fn.datepicker.addKo = function(){
|
|
|
|
this.defaults.disableTouchKeyboard = true;
|
|
|
|
this.defaults.disableTouchKeyboard = true;
|
|
|
|
this.defaults.enableOnReadonly = false;
|
|
|
|
this.defaults.enableOnReadonly = false;
|
|
|
|
this.defaults.immediateUpdates = true;
|
|
|
|
this.defaults.immediateUpdates = true;
|
|
|
|
|
|
|
|
this.defaults.zIndexOffset = 1;
|
|
|
|
|
|
|
|
|
|
|
|
this.DPGlobal.footTemplate = '<tfoot>'+
|
|
|
|
this.DPGlobal.footTemplate = '<tfoot>'+
|
|
|
|
'<tr>'+
|
|
|
|
'<tr>'+
|
|
|
@ -75,6 +77,31 @@ $.fn.datepicker.addKo = function(){
|
|
|
|
'</tr>'+
|
|
|
|
'</tr>'+
|
|
|
|
'</tfoot>';
|
|
|
|
'</tfoot>';
|
|
|
|
this.makeTemplate();
|
|
|
|
this.makeTemplate();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//z-index 변경
|
|
|
|
|
|
|
|
$.fn.datepicker.prototype.constructor.Constructor.prototype.originalPlace =
|
|
|
|
|
|
|
|
$.fn.datepicker.prototype.constructor.Constructor.prototype.place;
|
|
|
|
|
|
|
|
$.fn.datepicker.prototype.constructor.Constructor.prototype.place = function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var r = this.originalPlace();
|
|
|
|
|
|
|
|
var styleAttr = r.picker.attr('style');
|
|
|
|
|
|
|
|
var ziStart = styleAttr.substring(styleAttr.indexOf("z-index"));
|
|
|
|
|
|
|
|
var semicolonIdx = ziStart.indexOf(";");
|
|
|
|
|
|
|
|
if(semicolonIdx != -1){
|
|
|
|
|
|
|
|
ziString = ziStart.substring(0,semicolonIdx);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
ziString = ziStart;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(ziString.indexOf("!important") == -1){
|
|
|
|
|
|
|
|
var ziValue = ziString.substring(9);
|
|
|
|
|
|
|
|
var replaceStr = "z-index: " + ziValue + ' !important';
|
|
|
|
|
|
|
|
r.picker.attr('style', styleAttr.replace(ziString, replaceStr));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return r;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$.fn.datepicker.addKo();
|
|
|
|
$.fn.datepicker.addKo();
|