You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- now use timepicker with `$('#selector').datetimepicker()` or `$('#selector').timepicker()`.
17
19
18
20
There is also a [Bower](http://bower.io/) package named `jqueryui-timepicker-addon`. Beware there are other similar package names that point to forks which may not be current.
<p>If you prefer a hosted CDN there are a couple available: <ahref="http://cdnjs.com/libraries/jquery-ui-timepicker-addon" title="Timepicker on CDNJS">CDNJS</a>, <ahref="http://www.jsdelivr.com/#!jquery.ui.timepicker.addon" title="Timepicker on jsDelivr">jsDelivr</a>.</p>
115
117
<br/>
116
118
117
119
<h3>Requirements</h3>
@@ -459,7 +461,8 @@ <h2>Working with Localizations</h2>
459
461
closeText: 'Закрыть'
460
462
});
461
463
</pre>
462
-
<p>However, if you plan to use timepicker extensively you will need to include (build your own) localization. It is simply assigning those same variables to an object. As you see in the example below we maintain a separate object for timepicker. This way we aren't bound to any changes within datepicker.</p>
464
+
<p>However, if you plan to use timepicker extensively you will need to include (build your own) localization. It is simply assigning those same variables to an object.</p>
465
+
<p>As you see in the example below we maintain a separate object for timepicker. This way we aren't bound to any future changes within datepicker.</p>
463
466
464
467
<pre>$.datepicker.regional['ru'] = {
465
468
closeText: 'Закрыть',
@@ -500,8 +503,14 @@ <h2>Working with Localizations</h2>
<p>Now all you have to do is call timepicker and the Russian localization is used. Generally you only need to include the localization file, it will setDefaults() for you.</p>
504
-
<p>You can also visit <ahref="http://docs.jquery.com/UI/Datepicker/Localization" title="localization for datepicker" target="_BLANK">localization for datepicker</a> for more information about datepicker localizations.</p>
508
+
<p>As of version 1.4.5 a combined file of all localizations available is included. This file DOES NOT call setDefaults(), so you will need to pass, or merge with your options.</p>
<p>Timepicker comes with a collection of localization files and one combined file with all available localizations. $.timepicker.regional["your localization code here"] is a simple object with preset options:</p>
<p>Timepicker comes with a collection of localization files and one combined file with all available localizations. $.timepicker.regional["your localization code here"] is a simple object with preset options:</p>
Copy file name to clipboardExpand all lines: src/docs/i18n.html
+9-2
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,8 @@ <h2>Working with Localizations</h2>
19
19
closeText: 'Закрыть'
20
20
});
21
21
</pre>
22
-
<p>However, if you plan to use timepicker extensively you will need to include (build your own) localization. It is simply assigning those same variables to an object. As you see in the example below we maintain a separate object for timepicker. This way we aren't bound to any changes within datepicker.</p>
22
+
<p>However, if you plan to use timepicker extensively you will need to include (build your own) localization. It is simply assigning those same variables to an object.</p>
23
+
<p>As you see in the example below we maintain a separate object for timepicker. This way we aren't bound to any future changes within datepicker.</p>
23
24
24
25
<pre>$.datepicker.regional['ru'] = {
25
26
closeText: 'Закрыть',
@@ -60,6 +61,12 @@ <h2>Working with Localizations</h2>
<p>Now all you have to do is call timepicker and the Russian localization is used. Generally you only need to include the localization file, it will setDefaults() for you.</p>
64
-
<p>You can also visit <ahref="http://docs.jquery.com/UI/Datepicker/Localization" title="localization for datepicker" target="_BLANK">localization for datepicker</a> for more information about datepicker localizations.</p>
66
+
<p>As of version 1.4.5 a combined file of all localizations available is included. This file DOES NOT call setDefaults(), so you will need to pass, or merge with your options.</p>
<p>If you prefer a hosted CDN there are a couple available: <ahref="http://cdnjs.com/libraries/jquery-ui-timepicker-addon" title="Timepicker on CDNJS">CDNJS</a>, <ahref="http://www.jsdelivr.com/#!jquery.ui.timepicker.addon" title="Timepicker on jsDelivr">jsDelivr</a>.</p>
0 commit comments