Removing the bower component jquery.iframe-transport as this gets
shipped with jquery-file-upload.
Submitting the form data is now done through either Backbone Upload
Manager (if files are present) or through a standard Backbone.sync on
model.save. Interestingly the onSubmit code got cleaner because all
that header and AJAX config is now handled internally by Backbone
Upload Manager's dependency jQuery File Upload. Furthermore the
templates where changed to match our needs.
Unifying the attributes of spots (and thus the form field names) to
always be compliant to the GeoJSON spec and use their properties object.
This makes reasoning about attribute names and structure easier and
there are no assumptions about the schema of the models in the backend.
Overriding the icon-plus styling of Backbone Upload Manager with
that of bootstrap.
The two cases with no added files are now handled. Either we're dealing
with an existing spot that already has pictures and no new ones were
added. Submitting the form with the standard Backbone.sync was
already in place for that case. Or the spot was just created but no
files were added. This will just add add an error text to the
uploader now and the form won't be submitted.