LP#1668314 - Webstaff make marcEditor's flateditor checkbox sticky user/cesardv/lp1668314-webstaff_make_marc_flatEditor_checkbox_sticky
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Thu, 29 Jun 2017 17:27:40 +0000 (13:27 -0400)
committerCesar Velez <cesar.velez@equinoxinitiative.org>
Thu, 29 Jun 2017 19:19:32 +0000 (15:19 -0400)
commit1b04be2cad1c247c82e325bbbc4736f90176a7e4
treeda5317c3cca2b4189692a9b2df35e7c87c24442b
parent1dea2ca041897f82b61dffac7658c3adb1308ab6
LP#1668314 - Webstaff make marcEditor's flateditor checkbox sticky

Just followed the same pattern of using $watch and localstorage
to store a boolean for FlatEditor checkbox. Made $scope.flatEditor
be an object wrapping an isEnabled :bool to avoid *future* ng-if
parent scope issues that could (potentially) occur.

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js