You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's probably better to handle this in the Annotations Controller, but I was running into a bunch of problems because the action of saving the annotation occurs in the modal, so a standard redirect_to doesn't seem to work. This also seems to cause a minor bug with the :disable_with attribute for the submit button where it doesn't change to the disabled view until you press it a second time (though it works the first time and only submits the data once).
Could be something worth fixing up for the experiment branch, though it is only necessary for the experiment, so it also might not be worth spending too much time on.
The text was updated successfully, but these errors were encountered:
Currently, for the experiment branch, I am redirecting the user to the Maps index view with the follow code:
It's probably better to handle this in the Annotations Controller, but I was running into a bunch of problems because the action of saving the annotation occurs in the modal, so a standard
redirect_to
doesn't seem to work. This also seems to cause a minor bug with the:disable_with
attribute for the submit button where it doesn't change to the disabled view until you press it a second time (though it works the first time and only submits the data once).Could be something worth fixing up for the experiment branch, though it is only necessary for the experiment, so it also might not be worth spending too much time on.
The text was updated successfully, but these errors were encountered: