]> www.vanbest.org Git - motioneye-debian/commitdiff
frame buttons protection
authorCalin Crisan <ccrisan@gmail.com>
Sat, 26 Oct 2013 19:00:43 +0000 (22:00 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Sat, 26 Oct 2013 19:00:43 +0000 (22:00 +0300)
static/js/main.js

index 4e7f081c5d6c6d6bd4e02c45a2bdc4d95fff2e24..b0abe55db993fbe2517108896a2dd01ac613c8cd 100644 (file)
@@ -1308,11 +1308,19 @@ function recreateCameraFrames(cameras) {
 
 
 function doConfigureCamera(cameraId) {
+    if (isProgress()) {
+        return;
+    }
+    
     openSettings(cameraId);
 }
 
     /* not used anymore */
 function doCloseCamera(cameraId) {
+    if (isProgress()) {
+        return;
+    }
+    
     remCameraFrameUi(cameraId);
     showProgress();
     ajax('GET', '/config/' + cameraId + '/get/', null, function (data) {
@@ -1341,6 +1349,10 @@ function doCloseCamera(cameraId) {
 }
 
 function doFullScreenCamera(cameraId) {
+    if (isProgress()) {
+        return;
+    }
+    
     if (fullScreenCameraId != null) {
         return; /* a camera is already in full screen */
     }