jquery - Primeface - hide menubar -
i have p:menubar autodisplay="false" therefore menu opened when click on it.
i managed hide menu when user click on iframe calling iframe method like:
$("body").click(function(){ top.closemenu(); }); and top page made:
function closemenu(){ $(".umfmenu").find(".ui-widget-content").hide(); $(".umfmenu").find(".ui-state-hover").removeclass("ui-state-hover"); } now menu hidded success reappears onhover event because somehow state still active (and want show menu clicking on it)
do know how instead of hide can reset state of menu beeing inactive?
my menu is:
<p:menubar model="#{mainheader.model}" autodisplay="false" styleclass="umfmenu"/> i'm using primefaces 3.5
thank you!
i ask don't have enough reputation yet. adiztu, have tried unbind hover event in p:menubar?
$(.umfmenu).unbind('mouseenter mouseleave'); i've read documentation , think line can you.
Comments
Post a Comment