softec/cartoclic — Issue #6: Marker creation form may not be re-enabled after a submit
Author: olides
Created: 2012-01-18 09:42:54+00:00
State: open

When the marker creation form is displayed and a "list" request is issued containing the not-yet created marker, submitting the form will not re-enable the form.

# Steps to reproduce the problem:
1. Display the marker creation form (The server response will contain a marker with a random identifier such as 4295400c-e9d2-4da4-8e54-9af838eb4fe4)
2. Submit the form without filling any fields to trigger a validation error and have the server return the form.
3. Check that a "list" request occurred due to a map pan (either by the form display itself or by panning the map manually)
4. Submit the form again. The server sends a response that's ignored by the client and the form remains the same with it's buttons disabled.

# Exchanged messages:

## newmarker
{"request":"newmarker","map":"mapName","query":{},"userid":"...","zoom":11,"tiles":[],"time":1326878910735,"lnglat":{"lng":3.883514328125,"lat":43.678666395129}}

{"data":"...","marker":{"lnglat":{"lat":43.678666395129,"lng":3.883514328125},"updated":1326878910941,"uuid":"4295400c-e9d2-4da4-8e54-9af838eb4fe4"},"response":"create","time":1326878910940}

## create
{"request":"create","map":"mapName","query":{},"marker":{"uuid":"4295400c-e9d2-4da4-8e54-9af838eb4fe4"},"userid":"...","zoom":11,"tiles":[],"form":{"latitude":"43.678666395129","longitude":"3.883514328125","active":"1","email":"","password":"","password2":"","default_language":"fr","full_name":"","phone":"","website":"","address":""},"time":1326878919522}

{"data":"...","marker":{"lnglat":{"lat":43.678666395129,"lng":3.883514328125},"updated":1326878919723,"uuid":"4295400c-e9d2-4da4-8e54-9af838eb4fe4"},"response":"create","time":1326878919724}

## list
{"request":"list","map":"mapName","query":{},"marker":{"uuid":"4295400c-e9d2-4da4-8e54-9af838eb4fe4","updated":1326878919723},"userid":"...","zoom":11,"tiles":[],"time":1326878919995}

{"marker":{"deleted":true,"uuid":"4295400c-e9d2-4da4-8e54-9af838eb4fe4"},"response":"list","time":1326878920180}

## create (second try)
{"request":"create","map":"mapName","query":{},"marker":{"uuid":"4295400c-e9d2-4da4-8e54-9af838eb4fe4","updated":1326878919723},"userid":"...","zoom":11,"tiles":[],"form":{"latitude":"43.678666395129","longitude":"3.883514328125","active":"1","email":"","password":"","password2":"","default_language":"fr","full_name":"","phone":"","website":"","address":""},"time":1326878934856}

{"data":"....","marker":{"lnglat":{"lat":43.678666395129,"lng":3.883514328125},"updated":1326878935063,"uuid":"4295400c-e9d2-4da4-8e54-9af838eb4fe4"},"response":"create","time":1326878935064}