LP#1581196: webstaff: fix dirty form detection in patron editor
authorGalen Charlton <gmc@esilibrary.com>
Thu, 12 May 2016 19:58:49 +0000 (15:58 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 12 May 2016 19:58:49 +0000 (15:58 -0400)
commit9e8b3ed2dc7eef1018d411c6bc409fe1b65de0fb
treebed471b51e913d05cb19b546c16606d0a2372d52
parente4a56602fba68cfed61a73d34091ea287bc8cfc6
LP#1581196: webstaff: fix dirty form detection in patron editor

This patch fixes a problem wherein the patron editor
form would think that it had been modified by the
user immediately after initialization.

To test
-------
[1] Load the patron editor, then refresh the page. Note that
    you are warned that there is unsaved input.
[2] As above, but hit the save button. Note that after saving,
    you still get a warning that there is unsaved input.
[3] Apply the page, then repeat tests 1 and 2. This time, you
    shouldn't get inappropriate unsaved data warnings.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/templates/staff/circ/patron/t_edit.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js