new version 2.0.8

To add a class weekends xdsoft_weekend (Sunday, Saturday)
and Added options options.weekends
This commit is contained in:
Valeriy 2013-12-16 09:51:07 +06:00
parent bf8b1f5ec3
commit 887c934142
3 changed files with 172 additions and 140 deletions

View File

@ -20,7 +20,7 @@
"jquery",
"touch"
],
"version": "2.0.7",
"version": "2.0.8",
"author": {
"name": "Chupurnov Valeriy",
"email": "chupurnov@gmail.com",

View File

@ -27,6 +27,8 @@
<p>If select day is Saturday, the minimum set 11:00, otherwise 8:00</p>
<h3>onGenerate</h3>
<input type="text" id="datetimepicker8"/>
<h3>disable all weekend</h3>
<input type="text" id="datetimepicker9"/>
</body>
<script src="./jquery.js"></script>
<script src="./jquery.datetimepicker.js"></script>
@ -95,5 +97,13 @@ $('#datetimepicker8').datetimepicker({
maxDate:'+1970/01/2',
timepicker:false
});
$('#datetimepicker9').datetimepicker({
onGenerate:function( ct ){
$(this).find('.xdsoft_date.xdsoft_weekend')
.addClass('xdsoft_disabled');
},
weekends:['01.01.2014','02.01.2014','03.01.2014','04.01.2014','05.01.2014','06.01.2014'],
timepicker:false
});
</script>
</html>

File diff suppressed because one or more lines are too long