|
|
|
@ -6,7 +6,22 @@ function initDatepicker(elementId){
|
|
|
|
|
executionArea.find(".form-date").datepicker({
|
|
|
|
|
changeMonth: true,
|
|
|
|
|
changeYear: true,
|
|
|
|
|
showButtonPanel: true
|
|
|
|
|
showButtonPanel: true,
|
|
|
|
|
onChangeMonthYear : function(year, month, inst){
|
|
|
|
|
|
|
|
|
|
/** 기능 추가 : 연월 변경시 일 선택 */
|
|
|
|
|
|
|
|
|
|
var result = "" + year + "-"+(""+month).padStart(2,'0') + "-";
|
|
|
|
|
|
|
|
|
|
var endDay = DateUtil.getEndOfMonthDay(year, month);
|
|
|
|
|
if(inst.selectedDay > endDay){
|
|
|
|
|
result += (""+endDay).padStart(2,'0');
|
|
|
|
|
} else {
|
|
|
|
|
result += (""+inst.selectedDay).padStart(2,'0');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$(this).datepicker("setDate", result);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
executionArea.find(".form-date").next("button.bx-calendar").on("click", function() {
|
|
|
|
|