mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 08:09:58 +09:00
기존 calender function 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5040 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e3717c8dca
commit
8bcc3413ab
1 changed files with 21 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue