]> www.vanbest.org Git - motioneye-debian/commitdiff
minor ui reboot message fix
authorCalin Crisan <ccrisan@gmail.com>
Sun, 15 Mar 2015 18:19:13 +0000 (20:19 +0200)
committerCalin Crisan <ccrisan@gmail.com>
Sun, 15 Mar 2015 18:19:13 +0000 (20:19 +0200)
static/js/main.js

index 6289b5f752620c221125c6f3c6e4d84e51ceae8b..9af58649375c406311cf61bcb05301109065df36 100644 (file)
@@ -2230,7 +2230,7 @@ function fetchCurrentCameraConfig(onFetch) {
 function pushMainConfig(reboot) {
     var mainConfig = mainUi2Dict();
     
-    pushConfigReboot = reboot;
+    pushConfigReboot = pushConfigReboot || reboot;
     pushConfigs['main'] = mainConfig;
     if (!isApplyVisible()) {
         showApply();
@@ -2241,7 +2241,7 @@ function pushCameraConfig(reboot) {
     var cameraConfig = cameraUi2Dict();
     var cameraId = $('#cameraSelect').val();
 
-    pushConfigReboot = reboot;
+    pushConfigReboot = pushConfigReboot || reboot;
     pushConfigs[cameraId] = cameraConfig;
     if (!isApplyVisible()) {
         showApply();