Patch #3156447 Wrong format returned by datepicker in Search

This commit is contained in:
Madhura Jayaratne
2011-01-13 07:15:50 -05:00
committed by Marc Delisle
parent 5ed2e7aa35
commit 7ee006ff8b

View File

@@ -211,12 +211,13 @@ if (!isset($param) || $param[0] == '') {
//<![CDATA[ //<![CDATA[
$(function() { $(function() {
$('#field_<?php echo $i; ?>').datepicker({ $('#field_<?php echo $i; ?>').datepicker({
duration: '', duration: '',
time24h: true, time24h: true,
stepMinutes: 1, stepMinutes: 1,
stepHours: 1, stepHours: 1,
<?php echo ($type == 'date' ? "showTime: false,":"showTime: true,"); ?> <?php echo ($type == 'date' ? "showTime: false,":"showTime: true,"); ?>
altTimeField: '', dateFormat: 'yy-mm-dd',
altTimeField: '',
constrainInput: false constrainInput: false
}); });
}); });