Árvore de páginas

Versões comparadas

Chave

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

...

HTML
<a id="toggleAll" href="#" >Expandir/ocultar informações complementares<complementares javascript:countC();</a>
 <script type="text/javascript">
document.write = "<a id='toggleAll2' href='#' >Expandir/ocultar informações complementares</a>";
document.write = "<a id='toggleAll1' href='#' >Expandir/ocultar informações complementares</a>";
document.write = "<a id='toggleAll3' href='#' >Expandir/ocultar informações complementares</a>";
 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 countC(){
	return 1;
}
 
 </script>

Caminho básico


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

...