fesplugas/typus — Issue #324: clicking save on related item brings up dialog confirming whether to leave page
Author: iainad
Created: 2011-12-14 15:55:26+00:00
State: open

When configuring a related table in Typus, e.g. for a performance that belongs_to a production:

```ruby
Production:
fields:
default: to_label
form:
relationships: performances
application: Application
```

and I open or create a related item (in this case performance) and then click on 'Save' i get a browser dialog that asks me whether it's OK to leave the page or not. If I click leave this age it sends the update but does not close the fancybox overlay.

I'd expect to see this message (which is defined in the file referenced below) only when clicking the fancybox close and not when clicking the save button.

```ruby
# https://github.com/fesplugas/typus/blob/master/app/assets/javascripts/typus/jquery.application.js
```
This happens in multiple browsers and on my local dev system (OSX) as well as my production server (Ubuntu).

Not sure this behaviour is correct and certainly makes the user experience more complex than necessary.