Keep left menu open OneEleven theme

General project discussion. NOT for help questions.
Post Reply
flmm
Forum Members
Forum Members
Posts: 41
Joined: Wed Mar 24, 2010 1:12 pm

Keep left menu open OneEleven theme

Post by flmm »

I would like to make the OneEleven theme menu a bit less fancy. The menu slide effects are beautifull, but a bit too much for me after half a hour. I like to get used to positions of a menu item, after a few days you get to the position and clicking items is like second nature :). With the current effects you have click first, then move the mouse, click again and the menu changes again from position.

I would like to click the menu's open that I need, and on page change/refresh those items to stay open. I can change the js file to have multiple menu's open at the same time by removing this line: pagemenu.find('ul').slideUp(0);
But on a page change/refresh they are closed again.

What do I need to change to keep the menu's open?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Keep left menu open OneEleven theme

Post by velden »

What about:

Code: Select all

	// SIDEBAR MENU
	$(function() {
		var pagemenu = $('#oe_pagemenu');
		//EXTRA LINE BELOW
		pagemenu.find('ul').slideDown(0);  
		
		pagemenu.find('li.current span').addClass('open-sub');
		pagemenu.find('> li > span').click(function() {
			var ul = $(this).next();
			//DISABLED NEXT 3 LINES 
			//if(ul.is(':visible') === false) {
			//	pagemenu.find('ul').slideUp(0);
			//}
			ul.slideToggle(0);
		});
	});
flmm
Forum Members
Forum Members
Posts: 41
Joined: Wed Mar 24, 2010 1:12 pm

Re: Keep left menu open OneEleven theme

Post by flmm »

This code change just opens all the menu's. That's not what I would like.

I would like to be able to just open a few menu's. These opened menu's should stay open during page refresh/switch.
flmm
Forum Members
Forum Members
Posts: 41
Joined: Wed Mar 24, 2010 1:12 pm

Re: Keep left menu open OneEleven theme

Post by flmm »

I looked at the dropzone and cookies are used there to keep the dropzone open or closed. Will have a look at that when I have the time.
lone
Forum Members
Forum Members
Posts: 71
Joined: Mon Feb 27, 2006 1:36 pm

Re: Keep left menu open OneEleven theme

Post by lone »

A click on the menuitem icon to the left on the menuitem of the main categories, will open the menu like an ordinary CMSMS menu (no javascript) and will keep it open on page refresh - maybe what you want?

Edit:

Sorry, I just saw you asked for several open at a time.
Post Reply

Return to “General Discussion”