changeset 184:4e1abeb593c2

Updating jQuery and jQuery UI. This is for ticket #57. Noticed GCalendar wasn't opening the datepicker on the correct date until I set a dateFormat option. Fixed member map to undisable the update button if you type in a location that can't be geocoded.
author Brian Neal <bgneal@gmail.com>
date Sun, 28 Mar 2010 22:19:08 +0000
parents 149c3567fec1
children afb65fa947f1
files gpp/settings.py media/js/gcalendar.js media/js/membermap.js
diffstat 3 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/settings.py	Sun Mar 28 21:47:48 2010 +0000
+++ b/gpp/settings.py	Sun Mar 28 22:19:08 2010 +0000
@@ -217,7 +217,7 @@
 # should also be used by developers when creating form media classes.
 GPP_THIRD_PARTY_JS = {
     'jquery': (
-        'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js',
+        'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js',
     ),
     'jquery-autocomplete': (
         'js/jquery-autocomplete/lib/jquery.bgiframe.min.js',
@@ -228,7 +228,7 @@
         'js/jquery.jeditable.mini.js',
     ),
     'jquery-ui': (
-        'http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js',
+        'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js',
     ),
     'markitup': (
         'js/markitup/jquery.markitup.pack.js',
@@ -241,7 +241,7 @@
 }
 GPP_THIRD_PARTY_CSS = {
     'jquery-ui': (
-        'http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css',
+        'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/themes/redmond/jquery-ui.css',
     ),
     'jquery-autocomplete': (
         'js/jquery-autocomplete/jquery.autocomplete.css',
--- a/media/js/gcalendar.js	Sun Mar 28 21:47:48 2010 +0000
+++ b/media/js/gcalendar.js	Sun Mar 28 22:19:08 2010 +0000
@@ -1,5 +1,6 @@
 $(document).ready(function() {
     $('#id_start_date').datepicker({constrainInput: true, 
+       dateFormat: 'yy-mm-dd',
        onClose: function () {
          var end = $('#id_end_date');
          if (this.value > end.val())
@@ -9,6 +10,7 @@
        }
        });
     $('#id_end_date').datepicker({constrainInput: true,
+       dateFormat: 'yy-mm-dd',
        onClose: function () {
          var start = $('#id_start_date');
          if (this.value < start.val())
--- a/media/js/membermap.js	Sun Mar 28 21:47:48 2010 +0000
+++ b/media/js/membermap.js	Sun Mar 28 22:19:08 2010 +0000
@@ -77,6 +77,7 @@
                            if (!point)
                            {
                               alert(address + ' could not be found on Google Maps.');
+                              submitButton.removeAttr('disabled').val('Update');
                               return;
                            }
                            $.ajax({