Story 43130865: Refactored modal form ajax:complete handling s.t. submit buttons are only re-enabled when a refresh of the page is not pending.