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.
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 thesaveNote
function to avoid having to use a globalscreenLock
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.