Prevent navigation if there are unsaved changes on the resource panel
Fix deprecated returnValue to prevent confirm navigation alert

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

Merge remote-tracking branch 'origin/pr/782' into develop

* origin/pr/782:
  Prevent navigation if there are unsaved changes on the resource panel