aboutsummaryrefslogtreecommitdiffstats
path: root/demos/functional
diff options
context:
space:
mode:
authorKeith Wood <kbwood.au@gmail.com>2008-06-21 23:51:34 +0000
committerKeith Wood <kbwood.au@gmail.com>2008-06-21 23:51:34 +0000
commitca17b9953ecfdb2e3c86c74b2e7cfa2cc4373d56 (patch)
tree0dd443309f0c65efa062f2b41d45780aea324450 /demos/functional
parent2e3b8eac77fe95b583a945a022bced62c478408f (diff)
downloadjquery-ui-ca17b9953ecfdb2e3c86c74b2e7cfa2cc4373d56.tar.gz
jquery-ui-ca17b9953ecfdb2e3c86c74b2e7cfa2cc4373d56.zip
Fixed 2038 Split out display date and date value formats
Diffstat (limited to 'demos/functional')
-rw-r--r--demos/functional/templates/ui.datepicker.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/demos/functional/templates/ui.datepicker.html b/demos/functional/templates/ui.datepicker.html
index cc763f224..9ffa69eb4 100644
--- a/demos/functional/templates/ui.datepicker.html
+++ b/demos/functional/templates/ui.datepicker.html
@@ -199,6 +199,22 @@
},
{
+ title: 'Alternate Field and Format',
+ desc: 'Simultaneously update an alternate field using an alternate date format. ' +
+ 'This could be used to display selected dates in one format, while submitting ' +
+ 'the dates in another format from a hidden field. The alternate field is ' +
+ 'displayed here to demonstrate the functionality.',
+ html: '<input type="text" size="24" value="" id="alt1" readonly="readonly"/>\n' +
+ '<input type="text" size="24" value="" id="alt2" readonly="readonly"/>',
+ destroy: '$("#alt1").datepicker("destroy"); $("#alt2").val("");',
+
+ options: [
+ { desc: 'Single date selection', source: '$("#alt1").datepicker({altField: "#alt2", altFormat: "yy-mm-dd", showOn: "both", buttonImage: "templates/images/calendar.gif", buttonImageOnly: true});' },
+ { desc: 'Range date selection', source: '$("#alt1").datepicker({altField: "#alt2", altFormat: "yy-mm-dd", rangeSelect: true, numberOfMonths: 2, showOn: "both", buttonImage: "templates/images/calendar.gif", buttonImageOnly: true});' }
+ ]
+ },
+
+ {
title: 'Default Date',
desc: 'Control which date is shown if the datepicker is opened with no value. The default is today.',
html: '<input type="text" size="10" value="" id="defaultDate"/>',