Indexhibit

Login:

Created by:
Daniel Eatock &
Jeffery Vaska

Built with Indexhibit

disable the auto expand on page load?

 

Indexhibit version: 2.0
Thread is resolved.

adriandilena
CANADA
1 year(s) ago
Permalink Post

Hi Folks,

I asked this question recently in a post here : indexhibit.org/forum/thread/18023/

The thread has been closed and I am unable to follow up.

I was hoping someone might be able to point me in the right direction with my problem. I am using indexpand with the columner theme. The problem: when using this combo is that the menus don't collapse/reset after clicking on a new page within the menu. This means that you've got a menu expanded down over your content.
I would like to know how to make the menu reset upon page load.

Vaska had mentioned that it wouldn't be too hard, but I am not a terribly proficient coder and definitely not with Javascript. Looking for a hint here.

Thanks.
website is

adriandilena
CANADA
1 year(s) ago
Permalink Post

website:
philipmckee.justthoughtyoushouldknow.ca/

Best Answer!
arsondpi
GREECE
1 year(s) ago
Permalink Post

not sure if this is going to work but in the indexpand javascript find

  1.         // make sure the active section is unfolded
  2.         $('ul#' + options.active_section + ' li span').next('ul:first').show()

and make it into

  1.         // make sure the active section is unfolded
  2.         $('ul#' + options.active_section + ' li span').next('ul:first').hide()

and see if this works.

Best Answer!
adriandilena
CANADA
1 year(s) ago
Permalink Post

Ok...
First of all - THANK YOU SO MUCH. When ever I tell people about indexhibit, one of the selling features is definitely the support community that exists here. Vaska, Arsondpi and others have been so helpful. Thanks!

in response to this problem. I tried your fix and it didn't work. Then on a whim, I used 'reset' instead of 'hide' in the exact same place you suggested - and ... it worked!

Thanks so much.

Adrian

Vaska A
UNITED STATES
1 year(s) ago
Permalink Post

Interesting, I'm not even up on reset(). Thanks for posting your results...

adriandilena
CANADA
1 year(s) ago
Permalink Post

It was actually just an experiment based on your description in the previous thread listed above. funny how things work out.

thanks again.

Showing 1 - 6 of 6 posts in Forum » Customize » disable the auto expand on page load?
 

This thread has been closed, thank you.