doc update

This commit is contained in:
Valeriy Chupurnov 2013-11-28 01:57:15 +06:00
parent 6bbe31d950
commit 6bb5f7ba6e

27
doc.tpl
View File

@ -59,12 +59,19 @@ $(function(){$('#_datetimepicker').datetimepicker();});
<p>JavaScript</p> <p>JavaScript</p>
<pre><code data-language="javascript">$(&#39;#datetimepicker1&#39;).datetimepicker({ <pre><code data-language="javascript">$(&#39;#datetimepicker1&#39;).datetimepicker({
lang:&#39;de&#39;, lang:&#39;de&#39;,
i18n:{de:{ i18n:{
de:{
months:[ months:[
&#39;Januar&#39;,&#39;Februar&#39;,&#39;M&auml;rz&#39;,&#39;April&#39;,&#39;Mai&#39;,&#39;Juni&#39;,&#39;Juli&#39;,&#39;August&#39;, &#39;Januar&#39;,&#39;Februar&#39;,&#39;M&auml;rz&#39;,&#39;April&#39;,
&#39;September&#39;,&#39;Oktober&#39;,&#39;November&#39;,&#39;Dezember&#39;,], &#39;Mai&#39;,&#39;Juni&#39;,&#39;Juli&#39;,&#39;August&#39;,
dayOfWeek:[&quot;So.&quot;, &quot;Mo&quot;, &quot;Di&quot;, &quot;Mi&quot;, &quot;Do&quot;, &quot;Fr&quot;, &quot;Sa.&quot;,], &#39;September&#39;,&#39;Oktober&#39;,&#39;November&#39;,&#39;Dezember&#39;,
}}, ],
dayOfWeek:[
&quot;So.&quot;, &quot;Mo&quot;, &quot;Di&quot;, &quot;Mi&quot;,
&quot;Do&quot;, &quot;Fr&quot;, &quot;Sa.&quot;,
]
}
},
timepicker:false, timepicker:false,
format:&#39;d.m.Y&#39; format:&#39;d.m.Y&#39;
});</code></pre> });</code></pre>
@ -75,7 +82,8 @@ $('#_datetimepicker1').datetimepicker({
lang:'de', lang:'de',
i18n:{de:{ i18n:{de:{
months:[ months:[
'Januar','Februar','Marz','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], 'Januar','Februar','Marz','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'
],
dayOfWeek:["So.", "Mo", "Di", "Mi", "Do", "Fr", "Sa."] dayOfWeek:["So.", "Mo", "Di", "Mi", "Do", "Fr", "Sa."]
}}, }},
timepicker:false, timepicker:false,
@ -152,7 +160,10 @@ $('#image_button').click(function(){
<p>JavaScript</p> <p>JavaScript</p>
<pre><code data-language="javascript">$(&#39;#datetimepicker5&#39;).datetimepicker({ <pre><code data-language="javascript">$(&#39;#datetimepicker5&#39;).datetimepicker({
datepicker:false, datepicker:false,
allowTimes:[&#39;12:00&#39;, &#39;13:00&#39;, &#39;15:00&#39;, &#39;17:00&#39;, &#39;17:05&#39;, &#39;17:20&#39;, &#39;19:00&#39;, &#39;20:00&#39;] allowTimes:[
&#39;12:00&#39;, &#39;13:00&#39;, &#39;15:00&#39;,
&#39;17:00&#39;, &#39;17:05&#39;, &#39;17:20&#39;, &#39;19:00&#39;, &#39;20:00&#39;
]
});</code></pre> });</code></pre>
<p>Result</p> <p>Result</p>
<p><input id="_datetimepicker5" type="text" value="23:45" /></p> <p><input id="_datetimepicker5" type="text" value="23:45" /></p>
@ -189,7 +200,7 @@ $('#_datetimepicker6').datetimepicker({
timepicker:false, timepicker:false,
formatDate:&#39;Y/m/d&#39;, formatDate:&#39;Y/m/d&#39;,
minDate:&#39;-1970/01/02&#39;,//yesterday is minimum date(for today use 0 or -1970/01/01) minDate:&#39;-1970/01/02&#39;,//yesterday is minimum date(for today use 0 or -1970/01/01)
maxDate:&#39;+1970/01/02&#39;//and tommorow is maximum date calendar maxDate:&#39;+1970/01/02&#39;//tommorow is maximum date calendar
});</code></pre> });</code></pre>
<p>Result</p> <p>Result</p>
<p><input id="_datetimepicker7" type="text" value="" /></p> <p><input id="_datetimepicker7" type="text" value="" /></p>