diff media/js/gcalendar.js @ 198:7e3ed3eb9b99

Fix #71: problems with editing existing gcalendar dates; the date format wasn't what the datepicker expected.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Apr 2010 17:58:09 +0000
parents 4e1abeb593c2
children
line wrap: on
line diff
--- a/media/js/gcalendar.js	Sat Apr 10 04:32:24 2010 +0000
+++ b/media/js/gcalendar.js	Sun Apr 11 17:58:09 2010 +0000
@@ -1,6 +1,6 @@
 $(document).ready(function() {
     $('#id_start_date').datepicker({constrainInput: true, 
-       dateFormat: 'yy-mm-dd',
+       dateFormat: 'mm/dd/yy',
        onClose: function () {
          var end = $('#id_end_date');
          if (this.value > end.val())
@@ -10,7 +10,7 @@
        }
        });
     $('#id_end_date').datepicker({constrainInput: true,
-       dateFormat: 'yy-mm-dd',
+       dateFormat: 'mm/dd/yy',
        onClose: function () {
          var start = $('#id_start_date');
          if (this.value < start.val())