Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Close menu on click of Options button and outside of container Reply To: Close menu on click of Options button and outside of container

#240372
Anonymous
Inactive

Hello,
The menu does not open at all now. I think there might be an error in the code.

Full code:

<script type="text/javascript">
    jQuery(document).ready(function($) {
          $('.bbp-admin-links:even').css({position: 'absolute', right: '380px'});
$('.bbp-meta ul.bbp_custom_links_menu li.parent > a').click(function(e) {
    $(this).next('.bbp_custom_links_submenu').toggle();
    e.preventDefault();
})
.mouseup(function(e) {
    e.stopPropagation();
});
</script>

Thanks.