]> 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)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 8 Oct 2015 01:05:48 +0000 (01:05 +0000)
commit017b85eb22b2d971ed3003ab7543e60306629629
treee88dc274894e9b514dda529afd6c2687c52bc07c
parent514ee7dbd711577dabff9b8ff03cfba6e2cf2d87
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>
Open-ILS/web/js/ui/default/staff/services/hatch.js