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

Storageareas webfixes #19

Closed digital-gnome closed 6 years ago

digital-gnome commented 7 years ago

The archive button remained hidden on the event view because the javascript to control it doesn't fire on page load. I'm not sure how it's intended to work but the javascript doesn't even have access to that event information and everything else in that menu gets its control from php so I added that for the archive link.

The speed slider wasn't working on montagereview if you chose either 1 Hour or 8 Hour. I changed it back from some jquery logic since it wasn't working and the scale slider didn't use jquery.

The storage path text box was set as type url so it wouldn't accept regular unix style file paths. Changing it to text allows local storage to be added.

connortechnology commented 6 years ago

Not sure why the jquery stuff didn't work. The long term plan is to move from mootools entirely to jquery and we really do want to use constructs like $j(#blah) instead of getElementById... but whatever.

digital-gnome commented 6 years ago

If $j(#blah) is the desired format then that's fine. I've pushed a new version that fixes it. It looks like jquery returns a jquery object and speeds expected a raw DOM object. Adding [0] before .value fixes it.

connortechnology commented 6 years ago

yeah the switch to jquery is a bit painful.