Ver Fonte

Update readconfigparam.js

jomjol há 3 anos atrás
pai
commit
529690ec60
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      sd-card/html/readconfigparam.js

+ 7 - 0
sd-card/html/readconfigparam.js

@@ -745,6 +745,13 @@ function getROIInfo(_typeROI, _number){
 
 
 function RenameROI(_number, _type, _alt, _neu){
+     if ((_neu.search(".") >= 0) || (_neu.search(",") >= 0))
+     {
+          return "Name must not contain ',' or '.' - please change name";
+     }
+
+
+
      index = -1;
      found = false;
      _indexnumber = -1;