offline: WebSockets + no network = chaos
authorMike Rylander <mrylander@gmail.com>
Fri, 7 Jul 2017 15:49:55 +0000 (11:49 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 7 Jul 2017 15:53:08 +0000 (11:53 -0400)
commit0bc44ce8cd7620d4517d402bd5bb00ecf0fbcc73
treec9f4cb78afdeba393b051362b307b1dfa01e096b
parentaf9fd4ecdcd76865963db5d2d1897b4f809af073
offline: WebSockets + no network = chaos

Check for specific network and UI conditions and avoid using WebSockets when
they would freeze the offline interface.

Also, correct a typo in file loading.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/staff/index.tt2
Open-ILS/web/js/ui/default/staff/offline.js
Open-ILS/web/js/ui/default/staff/services/auth.js