connortechnology / ZoneMinder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
http://www.zoneminder.com/
GNU General Public License v2.0
9 stars 9 forks source link

Navigation plus #32

Closed digital-gnome closed 6 years ago

digital-gnome commented 6 years ago

fixes #31. I can separate out that fix or change it if you'd rather just use let. This also has rescale apply to the progress bar on zms streams. I can take that out if it's not wanted.

Nav buttons now handle when surrounding events aren't of the same type. Previously we could go from videojs to zms but then we'd get stuck. It now switches between page reloads and zms refresh navigation.

Nav buttons for both videojs and zms are disabled and marked as such if we hit the end of event list. Deleting the last event displays a message and allows navigating back.

replayAll displays a message if it's the last event. Fixed a bug where it would countdown all of epoch time if the events were back to back or overlapping.

Fixed alarmCues handling rounding errors that would occasionally make the spans overflow the div. Changed alarmCues to take an argument rather than find it's own event id. This allows zms navigation to have accurate alarmCues.

Made scaling apply to the progressBar and alarmCues