diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-11-29 17:44:04 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-12-16 10:15:35 +0000 |
commit | 34f942d7881451e164431a3231774568421a00f5 (patch) | |
tree | b9ff457f3286413fdd228027b2d4015ef8fd13ff /perllib/FixMyStreet/App/Controller/Root.pm | |
parent | fddf7f9585e50a60acca01b84bc8f9cfc267dd0b (diff) |
Store/show shortlisted reports offline.
This:
* On an online visit to /my/planned, caches all shortlisted reports,
their images and static maps in localStorage, with progress banner;
* When a report is added/removed from the shortlist, caches/de-caches
that report;
* When viewing a report page offline, shows that page from the cache
if present (replacing the dynamic map with the cached static map, and
replacing report images with their cached equivalents – it is a shame
to duplicate, but we cannot rely on the browser cache having these images);
* When viewing another page offline, shows an error message but also the
list of shortlisted reports that are cached (again, replacing their
thumbnail images with the cached versions).
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Root.pm')
0 files changed, 0 insertions, 0 deletions