Merge pull request #219 from bobmazanec/issue-201-create-several-by-class

Create several datetimepickers with class selector
This commit is contained in:
Valeriy 2014-12-25 09:35:50 +05:00
commit cdb28c6a5b
2 changed files with 7 additions and 2 deletions

View File

@ -16,6 +16,9 @@
<p><a href="http://xdsoft.net/jqplugins/datetimepicker/">Homepage</a></p>
<h3>DateTimePicker</h3>
<input type="text" value="" id="datetimepicker"/><br><br>
<h3>DateTimePickers selected by class</h3>
<input type="text" class="some_class" value="" id="some_class_1"/>
<input type="text" class="some_class" value="" id="some_class_2"/>
<h3>Mask DateTimePicker</h3>
<input type="text" value="" id="datetimepicker_mask"/><br><br>
<h3>TimePicker</h3>
@ -69,6 +72,8 @@ startDate: '1986/01/05'
});
$('#datetimepicker').datetimepicker({value:'2015/04/15 05:03',step:10});
$('.some_class').datetimepicker();
$('#default_datetimepicker').datetimepicker({
formatTime:'H:i',
formatDate:'d.m.Y',

View File

@ -690,7 +690,6 @@
lazyInitTimer = 0,
createDateTimePicker,
destroyDateTimePicker,
_xdsoft_datetime,
lazyInit = function (input) {
input
@ -735,7 +734,8 @@
current_time_index,
setPos,
timer = 0,
timer1 = 0;
timer1 = 0,
_xdsoft_datetime;
mounth_picker
.find('.xdsoft_month span')