기존 calender function 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5040 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2008-12-04 04:39:24 +00:00
parent e3717c8dca
commit 8bcc3413ab

View file

@ -163,7 +163,7 @@ function Datepicker() {
altFormat: '', // The date format to use for the alternate field
constrainInput: true // The input is constrained by the current date format
};
// $.extend(this._defaults, this.regional['']);
$.extend(this._defaults, this.regional['']);
this.dpDiv = $('<div id="' + this._mainDivId + '" style="display: none;"></div>');
}
@ -1784,3 +1784,23 @@ $.datepicker.uuid = new Date().getTime();
$.datepicker.version = "@VERSION";
})(jQuery);
var DyCalendar={ setup :
function(option){
(function($){
var date = $("#"+option.displayArea).html();
$("#"+option.displayArea).after($('<input type="text" id="'+option.displayArea+'__input__" value="'+date+'"readonly="readonly" />')).remove();
var opt ={
gotoCurrent: false
,yearRange:'-100:+10'
,onSelect : function(){
$("#"+option.inputField).val(this.value.replace(/-/g,""));
}
};
$("#"+option.displayArea+"__input__").datepicker(opt);
})(jQuery);
}
};