Histórico da Página
...
Además de todas las acciones disponibles en Visualizar documento, cuando se utiliza el visualizador interno, también se pueden ejecutar las acciones descritas en las siguientes rutas alternativas.
Estado | ||||
---|---|---|---|---|
|
HTML |
---|
<a id="toggleAll" href="#" >Expandir/ocultar informaciones complementarias. </a>
<script type="text/javascript">
var abertos = 0;
var fechados = 0;
function contador() {
abertos = 0;
fechados = 0;
jQuery(".expand-control").each( function() {
if (document.getElementById(this.id).children[0].className != "expand-control-icon icon expanded") {
fechados++;
} else {
abertos++;
}
});
}
AJS.toInit(function() {
contador();
var soma = abertos + fechados;
$("#toggleAll").html('Expandir/ocultar ' + soma + ' informaciones complementarias.');
AJS.$('#toggleAll').click(function() {
contador();
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");
}
}
)
}
});
});
</script> |
Ruta básica
01. Luego de localizar el documento y activar el link existente en su nombre para accederlo, visualice su contenido.
...
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas