From ca17b9953ecfdb2e3c86c74b2e7cfa2cc4373d56 Mon Sep 17 00:00:00 2001 From: Keith Wood Date: Sat, 21 Jun 2008 23:51:34 +0000 Subject: Fixed 2038 Split out display date and date value formats --- demos/functional/templates/ui.datepicker.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'demos/functional/templates') 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 @@ -198,6 +198,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: '\n' + + '', + 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.', -- cgit v1.2.3