Skip to content

Instantly share code, notes, and snippets.

@heat
Created July 2, 2013 22:04
Show Gist options
  • Save heat/5913640 to your computer and use it in GitHub Desktop.
Save heat/5913640 to your computer and use it in GitHub Desktop.
atualizando apos exibição javascript
<a4j:commandLink value="notificar" action="#{buscaNotificacoes}" oncomplete="toogleTooltip()" ></a4j:commandLink>
<script type="text/javascript">
function toogleTooltip(){
$("div.tooltip.notification").toogle("fast", function() {
var isVisible = $(this).is(":visible");
updateToggleTooltip(isVisible);
}); }
</script>
<a4j:form>
<a4j:jsFunction name="updateToggleTooltip" reRender="">
<a4j:actionparam name="visible" assignTo="#{Notificacao.toolTipVisible}" />
</a4j:jsFunction>
</a4j:form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment