google-code-export / sandy-disaster-recovery

Automatically exported from code.google.com/p/sandy-disaster-recovery
2 stars 2 forks source link

Patch for /trunk/sandy-disaster-recovery/javascript/form.js #129

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Now checks for duplicate sites.
This is a simple, check, and will need some work before going live, but I 
wanted to post progress and discuss with exactly how to go forward with this.

This example solution gets the freshly Geocoded lat/lng coordinates, and calls 
ajax_handler to return a json_array of one or more exact matches. When the json 
array is returned, a pop up element appears on the screen, showing all 
addresses associated with that lat/lng, and asks the user if the address they 
want to add has already been added, and gives them an option to go to the edit 
form.

I allowed for multiple addresses to handle apartment complexes which may have 
many Site requests.

This relies on adding 'popup_radio_form.css' to our style sheets.

Original issue reported on code.google.com by andy.n.g...@gmail.com on 11 Jan 2013 at 12:10

Attachments:

GoogleCodeExporter commented 9 years ago
Go ahead and check this in and iterate.

Original comment by rostovp...@gmail.com on 11 Jan 2013 at 5:45