From 9247272d7d92d8e845028561e754e1012ca9058f Mon Sep 17 00:00:00 2001 From: higo.gomes Date: Fri, 1 Apr 2016 13:54:19 +0000 Subject: [PATCH] git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%20Web/Fontes/avaliador-web@10665 c2178572-b5ca-4887-91d2-9e3a90c7d55b --- src/main/webapp/inicial_arquivos/js/avaliar.js | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+), 0 deletions(-) create mode 100644 src/main/webapp/inicial_arquivos/js/avaliar.js diff --git a/src/main/webapp/inicial_arquivos/js/avaliar.js b/src/main/webapp/inicial_arquivos/js/avaliar.js new file mode 100644 index 0000000..1b5612a --- /dev/null +++ b/src/main/webapp/inicial_arquivos/js/avaliar.js @@ -0,0 +1,118 @@ + +//Caso alguma tabela não apresente "linhas de erro", ocultará a tabela. + +$(document).ready(function() { + + //mark_error + $('.mark_error').each(function(index){ + + if($(this).find('tbody tr').length == 0){ + $(this).before( "

A seção não apresentou erros!

" ); + $(this).hide(); + } + }); + + + //mark_warning + $('.mark_warning').each(function(index){ + if($(this).find('tbody tr').length == 0){ + $(this).before( "

A seção não apresentou avisos!

" ); + $(this).hide(); + } + }); + + + //behavior_error + $('.behavior_error').each(function(index){ + + if($(this).find('tbody tr').length == 0){ + $(this).before( "

A seção não apresentou erros!

" ); + $(this).hide(); + } + }); + + + //behavior_warning + $('.behavior_warning').each(function(index){ + if($(this).find('tbody tr').length == 0){ + $(this).before( "

A seção não apresentou avisos!

" ); + $(this).hide(); + } + }); + + + //information_error + $('.information_error').each(function(index){ + + if($(this).find('tbody tr').length == 0){ + $(this).before( "

A seção não apresentou erros!

" ); + $(this).hide(); + } + }); + + + //information_warning + $('.information_warning').each(function(index){ + if($(this).find('tbody tr').length == 0){ + $(this).before( "

A seção não apresentou avisos!

" ); + $(this).hide(); + } + }); + + //presentation_error + $('.presentation_error').each(function(index){ + + if($(this).find('tbody tr').length == 0){ + $(this).before( "

A seção não apresentou erros!

" ); + $(this).hide(); + } + }); + + + //presentation_warning + $('.presentation_warning').each(function(index){ + if($(this).find('tbody tr').length == 0){ + $(this).before( "

A seção não apresentou avisos!

" ); + $(this).hide(); + } + }); + + + + //multimedia_error + $('.multimedia_error').each(function(index){ + + if($(this).find('tbody tr').length == 0){ + $(this).before( "

A seção não apresentou erros!

" ); + $(this).hide(); + } + }); + + + //multimedia_warning + $('.multimedia_warning').each(function(index){ + if($(this).find('tbody tr').length == 0){ + $(this).before( "

A seção não apresentou avisos!

" ); + $(this).hide(); + } + }); + + + //form_error + $('.form_error').each(function(index){ + + if($(this).find('tbody tr').length == 0){ + $(this).before( "

A seção não apresentou erros!

" ); + $(this).hide(); + } + }); + + //form_warning + $('.form_warning').each(function(index){ + if($(this).find('tbody tr').length == 0){ + $(this).before( "

A seção não apresentou avisos!

" ); + $(this).hide(); + } + }); + }); + -- libgit2 0.21.2