From: Calin Crisan Date: Sun, 13 Oct 2013 13:16:57 +0000 (+0300) Subject: add/remove cameras properly resets the refresh lock X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=2daec5fc23a98fba3a4972de3dc7d11f3f5607b0;p=motioneye-debian add/remove cameras properly resets the refresh lock --- diff --git a/doc/todo.txt b/doc/todo.txt index 73448ee..fc9ed42 100644 --- a/doc/todo.txt +++ b/doc/todo.txt @@ -1,3 +1,7 @@ +-> picam2 : nu avem hue si da eroare +-> picam2: zeroconf refreshEnabled == 1 +-> change password: refresh asks for auth + -> style scroll bars -> hint text next to section titles -> clickable hints diff --git a/src/config.py b/src/config.py index e558630..e3b0f98 100644 --- a/src/config.py +++ b/src/config.py @@ -137,7 +137,7 @@ def get_camera_ids(): camera_ids = [] - pattern = _CAMERA_CONFIG_FILE_NAME.replace('%(id)s', '(\d+)') + pattern = '^' + _CAMERA_CONFIG_FILE_NAME.replace('%(id)s', '(\d+)') + '$' for name in ls: match = re.match(pattern, name) if match: diff --git a/static/js/main.js b/static/js/main.js index 5c05231..b14f3dc 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -753,7 +753,7 @@ function doRemCamera() { return; } - hideApply(); + endProgress(); fetchCurrentConfig(); }); }); @@ -1078,7 +1078,7 @@ function runAddCameraDialog() { return; } - hideApply(); + endProgress(); var addCameraOption = $('#videoDeviceSelect').find('option[value=add]'); addCameraOption.before(''); $('#videoDeviceSelect').val(data.id).change();