Skip to content
Snippets Groups Projects
Commit cf7e7aa5 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Communication-lib: remove old comments

parent 4c84af68
No related branches found
No related tags found
No related merge requests found
......@@ -202,14 +202,14 @@ CommValidationUtil.makeValidationFn = function (commCategory)
switch (commCategory) {
case "EMAIL":
callbackFn = function (addrValue){
if (!mail.isValidMailAddress(addrValue, true)) //TODO: enable JDito-methods
if (!mail.isValidMailAddress(addrValue, true))
return translate.text("no valid mail-address format");
return null;
}
break;
case "LINK":
callbackFn = function (addrValue){
if (!net.isValidUrl(addrValue, ["http", "https"]))//TODO: enable JDito-methods
if (!net.isValidUrl(addrValue, ["http", "https"]))
return translate.text("no valid format");
return null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment