Icon for date/time picker

This commit is contained in:
Adnan
2011-01-13 10:33:32 -05:00
committed by Marc Delisle
parent 9b864bce9d
commit a56b1da3f4
2 changed files with 10 additions and 4 deletions

View File

@@ -978,13 +978,16 @@ foreach ($rows as $row_id => $vrow) {
//<![CDATA[ //<![CDATA[
$(function() { $(function() {
$('#field_<?php echo ($idindex); ?>_3').datepicker({ $('#field_<?php echo ($idindex); ?>_3').datepicker({
duration: '', showOn: 'button',
time24h: true, buttonImage: '<?php echo $GLOBALS['pmaThemeImage'] . 'b_calendar.png'; ?>',
stepMinutes: 1, buttonImageOnly: true,
duration: '',
time24h: true,
stepMinutes: 1,
stepHours: 1, stepHours: 1,
<?php echo ($field['pma_type'] == 'date' ? "showTime: false,":"showTime: true,"); ?> <?php echo ($field['pma_type'] == 'date' ? "showTime: false,":"showTime: true,"); ?>
dateFormat: 'yy-mm-dd', dateFormat: 'yy-mm-dd',
altTimeField: '', altTimeField: '',
constrainInput: false constrainInput: false
}); });
}); });

View File

@@ -211,6 +211,9 @@ if (!isset($param) || $param[0] == '') {
//<![CDATA[ //<![CDATA[
$(function() { $(function() {
$('#field_<?php echo $i; ?>').datepicker({ $('#field_<?php echo $i; ?>').datepicker({
showOn: 'button',
buttonImage: '<?php echo $GLOBALS['pmaThemeImage'] . 'b_calendar.png'; ?>',
buttonImageOnly: true,
duration: '', duration: '',
time24h: true, time24h: true,
stepMinutes: 1, stepMinutes: 1,