Explorar o código

Update readconfigcommon.js

fix for: The same message("Image Contrast got enhanced") came up with "Update Marker" and "Enhance Image Contrast".
michael hai 1 ano
pai
achega
5c57522b71
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      sd-card/html/readconfigcommon.js

+ 6 - 1
sd-card/html/readconfigcommon.js

@@ -245,7 +245,12 @@ function MakeRefImageZW(zw, _enhance, _domainname){
     } catch (error){}
 
     if (xhttp.responseText == "CutImage Done") {
-        firework.launch('Image Contrast got enhanced', 'success', 5000);
+        if (_enhance == true) {
+            firework.launch('Image Contrast got enhanced', 'success', 5000);
+        }
+        else {
+            firework.launch('Alignment Marker have been updated', 'success', 5000);
+        }
         return true;
     }
     else {