Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Estado
subtletrue
titleSaiba mais

HTML
<script type="text/javascript">
function count() {
      return 5;
 }
</script>
<a id="toggleAll" href="#">Expandir/ocultar informações complementares (<script>count<script type="text/javascript">count();</script>).</a>
 <script type="text/javascript">
 AJS.toInit(function ()
 {
 AJS.$('#toggleAll').click(function()
 {
 var abertos = 0;
 var fechados = 0;
 jQuery(".expand-control").each(
	function(){ 
		if(document.getElementById(this.id).children[0].className != "expand-control-icon icon expanded"){
			fechados++;
		} else {
			abertos++;
		}
	}
 )
 if(abertos >= fechados){
 	jQuery(".expand-control").each(
		function(){ 
			if(document.getElementById(this.id).children[0].className == "expand-control-icon icon expanded"){
				jQuery(this).trigger("click");
			}
		}
 	)
 } else {
 	jQuery(".expand-control").each(
		function(){ 
			if(document.getElementById(this.id).children[0].className != "expand-control-icon icon expanded"){
				jQuery(this).trigger("click");
			}
		}
	 )
 }


 });
 });
 function count() {
      return 5;
 }
 </script>

Caminho básico


01. Acessar a solicitação de processo que se deseja incluir um anexo.

...