From 3ed6ebcd51b35424735b20e583c235da9ed2347f Mon Sep 17 00:00:00 2001 From: hobbyquaker Date: Thu, 29 Mar 2018 18:02:40 +0200 Subject: [PATCH] comment --- motioneye/static/js/main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/motioneye/static/js/main.js b/motioneye/static/js/main.js index 84f139e..7326f1a 100644 --- a/motioneye/static/js/main.js +++ b/motioneye/static/js/main.js @@ -1000,7 +1000,7 @@ function updateLayout() { * is smaller than the height of the screen * divided by the number of layout rows */ - /* check if all images are initialized and find the max height/width ratio */ + /* find the max height/width ratio */ var frames = getCameraFrames(); var maxRatio = 0; @@ -1015,7 +1015,7 @@ function updateLayout() { if (!maxRatio) { return; /* no camera frames */ } - + var pageContainer = getPageContainer(); var windowWidth = $(window).width(); @@ -1045,7 +1045,7 @@ function updateLayout() { getPageContainer().css('width', ''); return; /* page container width already at its maximum */ } - + getPageContainer().css('width', width); } else { @@ -4399,7 +4399,7 @@ function runMediaDialog(cameraId, mediaType) { function addCameraFrameUi(cameraConfig) { var cameraId = cameraConfig.id; - + var cameraFrameDiv = $( '
' + '
' + @@ -4671,13 +4671,13 @@ function addCameraFrameUi(cameraConfig) { if (this.naturalHeight) { this._naturalHeight = this.naturalHeight; } - + if (this.initializing) { cameraProgress.removeClass('visible'); cameraImg.removeClass('initializing'); cameraImg.css('height', ''); this.initializing = false; - + updateLayout(); } -- 2.39.5