SolutionGuidance / psm

Welcome to the Medicare/Medicaid Provider Enrollment Screening Portal
http://projectpsm.org/
Other
26 stars 20 forks source link

Deduplicate and refactor submitById JS function #1026

Closed PaulMorris closed 6 years ago

PaulMorris commented 6 years ago

While working on another PR (#1016) I noticed this submitById JS function had identical definitions in two files (the service admin and provider script.js files). Remove the duplication and refactor it and the saveNote function to avoid having to use a global screenLock variable.

Tested by logging in as a service admin and creating and saving a note on an application, double-clicking the save button. And by running the integration test that submits an individual application.