summaryrefslogtreecommitdiffstats
path: root/src/docs
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs')
-rw-r--r--src/docs/examples.html14
-rw-r--r--src/docs/footer.html3
-rw-r--r--src/docs/header.html2
-rw-r--r--src/docs/i18n.html11
-rw-r--r--src/docs/intro.html2
5 files changed, 28 insertions, 4 deletions
diff --git a/src/docs/examples.html b/src/docs/examples.html
index 77dd2ef..587b0f1 100644
--- a/src/docs/examples.html
+++ b/src/docs/examples.html
@@ -51,6 +51,20 @@ $('#basic_example_3').datetimepicker({
</pre>
</div>
+
+ <!-- ============= example -->
+ <div class="example-container">
+ <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>
+ <div>
+ <input type="text" name="basic_example_4" id="basic_example_4" value="" />
+ </div>
+<pre>
+$('#basic_example_4').timepicker(
+ $.timepicker.regional['es']
+);
+</pre>
+ </div>
+
<h3 id="timezone_examples">Using Timezones</h3>
<!-- ============= example -->
diff --git a/src/docs/footer.html b/src/docs/footer.html
index 738157d..5f1c5ad 100644
--- a/src/docs/footer.html
+++ b/src/docs/footer.html
@@ -5,8 +5,9 @@
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
- <script type="text/javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.min.js"></script>
+ <script type="text/javascript" src="http://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script>
<script type="text/javascript" src="jquery-ui-timepicker-addon.js"></script>
+ <script type="text/javascript" src="i18n/jquery-ui-timepicker-addon-i18n.min.js"></script>
<script type="text/javascript" src="jquery-ui-sliderAccess.js"></script>
<script type="text/javascript">
diff --git a/src/docs/header.html b/src/docs/header.html
index 87a0836..4aa1f4c 100644
--- a/src/docs/header.html
+++ b/src/docs/header.html
@@ -38,7 +38,7 @@
.ebook .buyp a iframe{ margin-bottom: -5px; }
</style>
- <link rel="stylesheet" media="all" type="text/css" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" />
+ <link rel="stylesheet" media="all" type="text/css" href="http://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css" />
<link rel="stylesheet" media="all" type="text/css" href="jquery-ui-timepicker-addon.css" />
</head>
diff --git a/src/docs/i18n.html b/src/docs/i18n.html
index 377252a..bd05ccf 100644
--- a/src/docs/i18n.html
+++ b/src/docs/i18n.html
@@ -19,7 +19,8 @@
closeText: 'Закрыть'
});
</pre>
- <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>
+ <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>
+ <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>
<pre>$.datepicker.regional['ru'] = {
closeText: 'Закрыть',
@@ -60,6 +61,12 @@ $.timepicker.regional['ru'] = {
};
$.timepicker.setDefaults($.timepicker.regional['ru']);
</pre>
+
<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>
- <p>You can also visit <a href="http://docs.jquery.com/UI/Datepicker/Localization" title="localization for datepicker" target="_BLANK">localization for datepicker</a> for more information about datepicker localizations.</p>
+ <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>
+
+<pre>$('#example123').timepicker($.timepicker.regional['ru']);
+</pre>
+
+ <p>Localization files for datepicker are typically available in your jQueryUI downloads.</p>
</div>
diff --git a/src/docs/intro.html b/src/docs/intro.html
index 8ce20d8..573240d 100644
--- a/src/docs/intro.html
+++ b/src/docs/intro.html
@@ -37,6 +37,8 @@
.ui-timepicker-rtl dl dt{ float: right; clear: right; }
.ui-timepicker-rtl dl dd { margin: 0 45% 10px 10px; }
</pre>
+
+ <p>If you prefer a hosted CDN there are a couple available: <a href="http://cdnjs.com/libraries/jquery-ui-timepicker-addon" title="Timepicker on CDNJS">CDNJS</a>, <a href="http://www.jsdelivr.com/#!jquery.ui.timepicker.addon" title="Timepicker on jsDelivr">jsDelivr</a>.</p>
<br />
<h3>Requirements</h3>