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.

https://code.google.com/p/primefaces/source/browse/primefaces/trunk/src/main/resources/meta-inf/resources/primefaces/menu/menu.js?r=7888


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -