From 2daec5fc23a98fba3a4972de3dc7d11f3f5607b0 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 13 Oct 2013 16:16:57 +0300 Subject: [PATCH] add/remove cameras properly resets the refresh lock --- doc/todo.txt | 4 ++++ src/config.py | 2 +- static/js/main.js | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) 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(); -- 2.39.5