From d6f8be6cb5523d9026fe605415d2f5e3b51774e4 Mon Sep 17 00:00:00 2001 From: Sesostris Vieira Date: Wed, 17 Oct 2012 16:12:23 +0000 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20de=20bug=20na=20exibi?= =?UTF-8?q?=C3=A7=C3=A3o=20de=20mensagens=20de=20erro=20na=20interface=20m?= =?UTF-8?q?obile=20do=20diagn=C3=B3stico.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- media/js/diagnosticos/diagnosticos_categorias_form.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/media/js/diagnosticos/diagnosticos_categorias_form.js b/media/js/diagnosticos/diagnosticos_categorias_form.js index 692f1ef..d9a9d8b 100644 --- a/media/js/diagnosticos/diagnosticos_categorias_form.js +++ b/media/js/diagnosticos/diagnosticos_categorias_form.js @@ -23,6 +23,9 @@ $('#page').live('pageinit', function(event){ if (data.mensagem == "erro") { for (var campo in data.erros) { error = $("#" + campo); + if (!error.is('span.errors')) { + error = error.children('span.errors'); + } error.html(data.erros[campo].join('\n')); } }