Reply To: Smartmenu with Lightbox overlay ?

Home Forums Older releases 1.0.x Smartmenu with Lightbox overlay ? Reply To: Smartmenu with Lightbox overlay ?

#2932
admin
Keymaster

But in general the following should work fine (simplified example):

var $menu = $('#main-menu'),
	$overlay = $('#menu-overlay');
$menu.bind({
	'beforeshow.smapi': function(e, menu) {
		$overlay.show();
	},
	'hide.smapi': function(e, menu) {
		var obj = $(this).data('smartmenus');
		if (obj.visibleSubMenus.length == 0) {
			$overlay.hide();
		}
	}
});

Register

You will be emailed a link to set your password.

Login

Lost password?