]> www.vanbest.org Git - motioneye-debian/commitdiff
camera is no longer being refreshed after removed
authorCalin Crisan <ccrisan@gmail.com>
Sat, 28 Jun 2014 14:39:25 +0000 (17:39 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Sat, 28 Jun 2014 14:39:25 +0000 (17:39 +0300)
static/js/main.js

index dd0c0b31590bba6bbb41e265e1ed79e2a7de064f..b0fe343e6884f50f7838e7d642d5da72944495f1 100644 (file)
@@ -982,6 +982,10 @@ function doRemCamera() {
     var deviceName = $('#videoDeviceSelect').find('option[value=' + cameraId + ']').text();
     
     runConfirmDialog('Remove camera ' + deviceName + '?', function () {
+        /* disable further refreshing of this camera */
+        var img = $('div.camera-frame#camera' + cameraId).find('img.camera')[0];
+        img.loading = 1;
+        
         beginProgress();
         ajax('POST', '/config/' + cameraId + '/rem/', null, function (data) {
             if (data == null || data.error) {