Commit Graph

9 Commits

Author SHA1 Message Date
Oliver Gerlich cbd87c85c8 list perf: use textContent instead of innerHTML 2018-07-16 23:05:36 +02:00
Oliver Gerlich c7b051e73b list perf: re-render list at most once per second
This should at least keep the browser somewhat usable even if lots of
updates are received from server.
2018-07-16 23:05:36 +02:00
Oliver Gerlich 780fce0fc8 node page: display GPS coordinates next to toggle button 2018-07-16 23:05:36 +02:00
Oliver Gerlich 7c60ebddf5 node page: some fixes for GPS-following
- rename storePosition to gpsPosition
- don't check for btnGPS.innerHTML contents (this is fragile); check for
  this.gpsPosition instead
- fix call to updatePosition() when clicking "Stop following"
2018-07-16 23:05:36 +02:00
Oliver Gerlich b7f07ccbe0 node page: fix bug if navigator.geolocation.watchPosition() returns 0 as id 2018-07-16 23:05:36 +02:00
Oliver Gerlich cf80198928 node page: set node details (hostname/owner etc.) also if location is unknown 2018-07-16 23:05:32 +02:00
Martin/Geno 63f77d87c7
fix statistics channel view 2018-07-15 21:55:31 +02:00
Oliver Gerlich cd511dce8e web: rework store.js and interaction with view/node.js
- store.getNode() no longer adds new node to the list
- instead, store.createNode() can be used to create an empty new node
- view/node.js now now transfer a local copy of the node object it wants to
  modify, rather then modifying the real object from store.list. If the
  change is accepted by server, the server will send the new values for the
  changed object anyway.

Previously, if the user visited the node page for a nonexistent node but
didn't make any changes, the list view would always throw an exception
because an incomplete node object was contained in the list.
2018-07-15 21:51:11 +02:00
Martin/Geno 82270e6fa3
cleanup and migrate to newer libraries (use NEW Javascript env) + add secret 2018-06-30 17:22:20 +02:00