maphub / maphub-portal

An online application for exploring and annotating digitized, high-resolution historic maps.
maphub.github.com
Apache License 2.0
39 stars 11 forks source link

Annotations that don't run a Tagging View aren't saved #83

Open keithnewman14 opened 12 years ago

keithnewman14 commented 12 years ago

Within the experiment branch, if an annotation doesn't have any tags (or rather, if it doesn't try to generate tags), it won't save to the database. This is not an issue with the current Master branch.

It seems that it may be somehow caused by using javascript to redirect after an annotation is saved (removing the javascript resolves the problem).

keithnewman14 commented 12 years ago

I added a timeout to the page redirection equal to self.timeout as a sort of workaround (that way, the Tagging View has to start before the page is redirected because the keyup even will run before the submit event.).

A rather inelegant solution, but it seems to get the job done at the moment.