- Avoid incorrect validation after using datepicker

- Partly jQueryfy a function
- After fixing an incorrect value, the field remained red
This commit is contained in:
Marc Delisle
2011-01-14 09:20:09 -05:00
parent 867892816d
commit 2817ebe8e9
2 changed files with 36 additions and 37 deletions

View File

@@ -988,6 +988,10 @@ $(function() {
<?php echo ($field['pma_type'] == 'date' ? "showTime: false,":"showTime: true,"); ?>
dateFormat: 'yy-mm-dd', // yy means year with four digits
altTimeField: '',
beforeShow: function(input, inst) {
// Remember that we came from the datepicker
$(input).data('comes_from', 'datepicker');
},
constrainInput: false
});
});