From 8bcc3413abd3623008835492bf903a496fb9eb15 Mon Sep 17 00:00:00 2001 From: ngleader Date: Thu, 4 Dec 2008 04:39:24 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=EC=A1=B4=20calender=20function=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5040 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/ui.datepicker.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/common/js/ui.datepicker.js b/common/js/ui.datepicker.js index 1c64ef641..cc184987d 100644 --- a/common/js/ui.datepicker.js +++ b/common/js/ui.datepicker.js @@ -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 = $(''); } @@ -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($('')).remove(); + var opt ={ + gotoCurrent: false + ,yearRange:'-100:+10' + ,onSelect : function(){ + $("#"+option.inputField).val(this.value.replace(/-/g,"")); + } + }; + $("#"+option.displayArea+"__input__").datepicker(opt); + })(jQuery); + } + +}; \ No newline at end of file