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>
Tue, 2 Feb 2016 01:36:16 +0000 (20:36 -0500)
commite5659abd8176bbb318611ac2d7acc32a46fc65d8
tree5ac85ac26ebf2c8a329f81ef024951b6f2e5b2ae
parent95c9e8a34817ea14debf5558f00190d2684340e5
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