aboutsummaryrefslogtreecommitdiffstats
path: root/demos/datepicker
diff options
context:
space:
mode:
authorKeith Wood <kbwood.au@gmail.com>2009-07-29 08:33:33 +0000
committerKeith Wood <kbwood.au@gmail.com>2009-07-29 08:33:33 +0000
commit20e13a4d772466e4cf9b455a76ea9f4d5be1c0b9 (patch)
tree4e4067d743ba84a4e56afd0df674f8e3145b75e0 /demos/datepicker
parente84694a0c456895234b2686aeab72be69f3dbf74 (diff)
downloadjquery-ui-20e13a4d772466e4cf9b455a76ea9f4d5be1c0b9.tar.gz
jquery-ui-20e13a4d772466e4cf9b455a76ea9f4d5be1c0b9.zip
Datepicker: Fixed #4131 Could week numbers [be] added to the Datepicker
Diffstat (limited to 'demos/datepicker')
-rw-r--r--demos/datepicker/index.html1
-rw-r--r--demos/datepicker/show-week.html34
2 files changed, 35 insertions, 0 deletions
diff --git a/demos/datepicker/index.html b/demos/datepicker/index.html
index 9cce296e7..f66e0ede3 100644
--- a/demos/datepicker/index.html
+++ b/demos/datepicker/index.html
@@ -18,6 +18,7 @@
<li><a href="buttonbar.html">Display button bar</a></li>
<li><a href="dropdown-month-year.html">Display month &amp; year menus</a></li>
<li><a href="other-months.html">Dates in other months</a></li>
+ <li><a href="show-week.html">Show week of the year</a></li>
<li><a href="multiple-calendars.html">Display multiple months</a></li>
<li><a href="icon-trigger.html">Icon trigger</a></li>
<li><a href="event-search.html">Event Search</a></li>
diff --git a/demos/datepicker/show-week.html b/demos/datepicker/show-week.html
new file mode 100644
index 000000000..d14c72225
--- /dev/null
+++ b/demos/datepicker/show-week.html
@@ -0,0 +1,34 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Datepicker - Show week of the year</title>
+ <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
+ <script type="text/javascript" src="../../jquery-1.3.2.js"></script>
+ <script type="text/javascript" src="../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../ui/ui.datepicker.js"></script>
+ <link type="text/css" href="../demos.css" rel="stylesheet" />
+ <script type="text/javascript">
+ $(function() {
+ $("#datepicker").datepicker({showWeek: true, firstDay: 1});
+ });
+ </script>
+</head>
+<body>
+
+<div class="demo">
+
+<p>Date: <input type="text" id="datepicker"></p>
+
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>The datepicker can show the week of the year. The default calculation follows
+ the ISO 8601 definition: the week starts on Monday, the first week of the year
+ contains the first Thursday of the year. This means that some days from one
+ year may be placed into weeks 'belonging' to another year.</p>
+
+</div><!-- End demo-description -->
+
+</body>
+</html>