att
This commit is contained in:
+13
@@ -15,6 +15,19 @@ function validateForm(form) {
|
||||
message += getMessage("Justificativa da decisão", 1, form);
|
||||
hasErros = true;
|
||||
}
|
||||
} else if (atividade == 4) {
|
||||
var tipoEntregaAprovacao = String(form.getValue("tipoEntregaAprovacao") || "").trim();
|
||||
var loginAtribuicao = String(form.getValue("loginEntregaAprovacao") || "").trim();
|
||||
if (tipoEntregaAprovacao == "") {
|
||||
message += getMessage("Quem vai fazer a entrega", 2, form);
|
||||
hasErros = true;
|
||||
} else if (tipoEntregaAprovacao == "eu" && loginAtribuicao == "") {
|
||||
message += getMessage("Login para atribuição da entrega", 1, form);
|
||||
hasErros = true;
|
||||
} else if (tipoEntregaAprovacao == "eu" && loginAtribuicao.length > 30) {
|
||||
message += "Campo \"Login para atribuição da entrega\" permite no maximo 30 caracteres.<br>";
|
||||
hasErros = true;
|
||||
}
|
||||
}
|
||||
|
||||
switch (atividade) {
|
||||
|
||||
Reference in New Issue
Block a user