mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-24 19:46:17 -05:00
Merge branch 'master' into new-schema
This commit is contained in:
@@ -84,11 +84,11 @@ export default class NVRSettingsView {
|
||||
*/
|
||||
wireControls_() {
|
||||
const videoLengthEl = $(`#${this.ids_.videoLenId}`);
|
||||
this.videoLength_ = this.findSelectedOrFirst_(videoLengthEl);
|
||||
|
||||
const normalize = (v) => v == 'infinite' ? Infinity : Number(v);
|
||||
this.videoLength_ = normalize(this.findSelectedOrFirst_(videoLengthEl));
|
||||
videoLengthEl.change((e) => {
|
||||
const newValueStr = e.currentTarget.value;
|
||||
this.videoLength_ =
|
||||
newValueStr == 'infinite' ? Infinity : Number(newValueStr);
|
||||
this.videoLength_ = normalize(e.currentTarget.value);
|
||||
if (this.videoLengthHandler_) {
|
||||
this.videoLengthHandler_(this.videoLength_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user