Fix deprecated returnValue

Since Chrome 32.0.1700.77 (Linux), every time you leave an "update resource panel", we are asked to make "confirm navigation".

Changing returnValue to preventDefault() fixes the issue.

**Note** : This has not been tested on other browsers/OS