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