Fix deprecated returnValue
Fix deprecated returnValue to prevent confirm navigation alert

Prevents unwanted "confirm navigation" alerts in Chrome 32+

Merge remote-tracking branch 'origin/pr/802' into release-2.2

* origin/pr/802:
  Fix deprecated returnValue
Prevent navigation if there are unsaved changes on the resource panel

(cherry picked from commit ba19d1825dd588d9f851c086d9536395a58e3a88)
Confirm navigation when unsaved changes exist in resource panel

changelog entry
Confirm navigation when unsaved changes exist in resource panel

Merge branch 'pr/782' into release-2.2

* pr/782:
  Confirm navigation when unsaved changes exist in resource panel
  Prevent navigation if there are unsaved changes on the resource panel