]> git.evergreen-ils.org Git - working/Evergreen.git/commit
webstaff: start teaching egHatch about sessionStorage
authorGalen Charlton <gmc@esilibrary.com>
Thu, 8 Oct 2015 01:05:48 +0000 (01:05 +0000)
committerKathy Lussier <klussier@masslnc.org>
Tue, 2 Feb 2016 19:58:49 +0000 (14:58 -0500)
commit1abdc5e561a26136039117751f673d8e914c55de
tree60132858a07bcfbb09fe701b7d933e950949fe50
parentc687951fa292b93ce9dc08a320d429a025629282
webstaff: start teaching egHatch about sessionStorage

This patch adds getSessionItem(), setSessionItem(), and
removeSessionItem(), which are all wrappers around
$window.sessionStorage. This is done to support settings
whose values are sticky for the duration of a session,
which at present is the lifetime of the browser tab.

An alternative would be using session cookies; some user
testing is needed to see which lifetime makes the most
sense.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/services/hatch.js