Form doesn’t submit on second submit call

The php function which handles the submitted values in this plugin checks first if the button’s value isset. When using the original submit it is. When using preventDefault() and then calling submit() it isn’t and therefor the php doesn’t handle the submitted form but rebuilds it. To fix this I just added to the isset() check a check if the lat/long values are true. That did the trick.