Skip to content
Browse files

Add jQuery Datepicker to the admin customers page (issue #99)

  • Loading branch information...
1 parent ad2ef8f commit 20c81beecbe43a51eb91a7c79d7471fad65d871f @haraldpdl haraldpdl committed Nov 7, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 catalog/admin/customers.php
View
5 catalog/admin/customers.php
@@ -409,7 +409,6 @@ function check_form() {
<tr>
<td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>
<td class="main">
-
<?php
if ($error == true) {
if ($entry_date_of_birth_error == true) {
@@ -420,7 +419,9 @@ function check_form() {
} else {
echo tep_draw_input_field('customers_dob', tep_date_short($cInfo->customers_dob), 'maxlength="10"', true);
}
-?></td>
+?>
+ <script type="text/javascript">$('#customers_dob').datepicker({dateFormat: '<?php echo JQUERY_DATEPICKER_FORMAT; ?>', changeMonth: true, changeYear: true, yearRange: '-100:+0'});</script>
+ </td>
</tr>
<?php
}

0 comments on commit 20c81be

Please sign in to comment.
Something went wrong with that request. Please try again.