refs #478: use beforeunload event instead
refs #491: enable/disable button of saving ticket

in #474 we stopped to enable/disable button of saving ticket so
buttons), this commit enable/disable button again.
refs #478: correct message
Merge pull request #492 from eller86/use-beforeunload

Use beforeunload event to warn user