# HG changeset patch # User Brian Neal # Date 1269814748 0 # Node ID 4e1abeb593c29a8590a8614e1203a89a9b43071a # Parent 149c3567fec113560dc33c10a7bf096dff2a113d 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. diff -r 149c3567fec1 -r 4e1abeb593c2 gpp/settings.py --- 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', diff -r 149c3567fec1 -r 4e1abeb593c2 media/js/gcalendar.js --- 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()) diff -r 149c3567fec1 -r 4e1abeb593c2 media/js/membermap.js --- 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({