Update root/static/scripts/relationship-editor/Dialog.js

Added correct functionality to link work button.