• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Keep left menu open OneEleven theme
PostPosted: Tue Oct 09, 2012 12:03 pm 
Offline
Forum Members
Forum Members

Joined: Wed Mar 24, 2010 1:12 pm
Posts: 15
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?


Top
 Profile  
 
 Post subject: Re: Keep left menu open OneEleven theme
PostPosted: Tue Oct 09, 2012 1:51 pm 
Offline
Power Poster
Power Poster

Joined: Mon Nov 28, 2011 9:29 am
Posts: 409
What about:

Code:
   // 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);
      });
   });


Top
 Profile  
 
 Post subject: Re: Keep left menu open OneEleven theme
PostPosted: Thu Oct 11, 2012 8:23 pm 
Offline
Forum Members
Forum Members

Joined: Wed Mar 24, 2010 1:12 pm
Posts: 15
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.


Top
 Profile  
 
 Post subject: Re: Keep left menu open OneEleven theme
PostPosted: Thu Oct 11, 2012 8:31 pm 
Offline
Forum Members
Forum Members

Joined: Wed Mar 24, 2010 1:12 pm
Posts: 15
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.


Top
 Profile  
 
 Post subject: Re: Keep left menu open OneEleven theme
PostPosted: Fri Oct 26, 2012 11:26 am 
Offline
Forum Members
Forum Members

Joined: Mon Feb 27, 2006 1:36 pm
Posts: 65
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting