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>
Mon, 19 Oct 2015 15:08:27 +0000 (15:08 +0000)
commit5e7e0f8b54e7df99843d9ef015bf5a0957857ae9
treecb4c287cfb4aa327a213d5f2f81ca4680737a920
parent97d4e36ceae5489fe7071cb3645fe450e866ab3f
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