Commit 9247272d7d92d8e845028561e754e1012ca9058f

Authored by higo.gomes
1 parent 0743e9ab

git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%2…

…0Web/Fontes/avaliador-web@10665 c2178572-b5ca-4887-91d2-9e3a90c7d55b
Showing 1 changed file with 118 additions and 0 deletions   Show diff stats
src/main/webapp/inicial_arquivos/js/avaliar.js 0 → 100644
... ... @@ -0,0 +1,118 @@
  1 +
  2 +//Caso alguma tabela não apresente "linhas de erro", ocultará a tabela.
  3 +
  4 +$(document).ready(function() {
  5 +
  6 + //mark_error
  7 + $('.mark_error').each(function(index){
  8 +
  9 + if($(this).find('tbody tr').length == 0){
  10 + $(this).before( "<p>A seção não apresentou erros!</p>" );
  11 + $(this).hide();
  12 + }
  13 + });
  14 +
  15 +
  16 + //mark_warning
  17 + $('.mark_warning').each(function(index){
  18 + if($(this).find('tbody tr').length == 0){
  19 + $(this).before( "<p>A seção não apresentou avisos!</p>" );
  20 + $(this).hide();
  21 + }
  22 + });
  23 +
  24 +
  25 + //behavior_error
  26 + $('.behavior_error').each(function(index){
  27 +
  28 + if($(this).find('tbody tr').length == 0){
  29 + $(this).before( "<p>A seção não apresentou erros!</p>" );
  30 + $(this).hide();
  31 + }
  32 + });
  33 +
  34 +
  35 + //behavior_warning
  36 + $('.behavior_warning').each(function(index){
  37 + if($(this).find('tbody tr').length == 0){
  38 + $(this).before( "<p>A seção não apresentou avisos!</p>" );
  39 + $(this).hide();
  40 + }
  41 + });
  42 +
  43 +
  44 + //information_error
  45 + $('.information_error').each(function(index){
  46 +
  47 + if($(this).find('tbody tr').length == 0){
  48 + $(this).before( "<p>A seção não apresentou erros!</p>" );
  49 + $(this).hide();
  50 + }
  51 + });
  52 +
  53 +
  54 + //information_warning
  55 + $('.information_warning').each(function(index){
  56 + if($(this).find('tbody tr').length == 0){
  57 + $(this).before( "<p>A seção não apresentou avisos!</p>" );
  58 + $(this).hide();
  59 + }
  60 + });
  61 +
  62 + //presentation_error
  63 + $('.presentation_error').each(function(index){
  64 +
  65 + if($(this).find('tbody tr').length == 0){
  66 + $(this).before( "<p>A seção não apresentou erros!</p>" );
  67 + $(this).hide();
  68 + }
  69 + });
  70 +
  71 +
  72 + //presentation_warning
  73 + $('.presentation_warning').each(function(index){
  74 + if($(this).find('tbody tr').length == 0){
  75 + $(this).before( "<p>A seção não apresentou avisos!</p>" );
  76 + $(this).hide();
  77 + }
  78 + });
  79 +
  80 +
  81 +
  82 + //multimedia_error
  83 + $('.multimedia_error').each(function(index){
  84 +
  85 + if($(this).find('tbody tr').length == 0){
  86 + $(this).before( "<p>A seção não apresentou erros!</p>" );
  87 + $(this).hide();
  88 + }
  89 + });
  90 +
  91 +
  92 + //multimedia_warning
  93 + $('.multimedia_warning').each(function(index){
  94 + if($(this).find('tbody tr').length == 0){
  95 + $(this).before( "<p>A seção não apresentou avisos!</p>" );
  96 + $(this).hide();
  97 + }
  98 + });
  99 +
  100 +
  101 + //form_error
  102 + $('.form_error').each(function(index){
  103 +
  104 + if($(this).find('tbody tr').length == 0){
  105 + $(this).before( "<p>A seção não apresentou erros!</p>" );
  106 + $(this).hide();
  107 + }
  108 + });
  109 +
  110 + //form_warning
  111 + $('.form_warning').each(function(index){
  112 + if($(this).find('tbody tr').length == 0){
  113 + $(this).before( "<p>A seção não apresentou avisos!</p>" );
  114 + $(this).hide();
  115 + }
  116 + });
  117 + });
  118 +
... ...