ksafranski / Responsinav

Responsive Multi-Level Navigation jQuery Plugin
14 stars 1 forks source link

Problems as soon as you add a second navigation (e.g. meta navigation) #1

Open NinaG opened 11 years ago

NinaG commented 11 years ago

I added another navigation into the layout (a small meta navigation with "Contact | Legal stuff | Site map"). Now the script gets a bit crazy because it finds two

<nav>

HTML-elements and reacts to both of them (which it shouldn't).

It even gets crazier as soon as you take a look at the mobile version of the website because it now puts the

<a class="mobile_handle">Navigation</a>

twice inside and - in my case - shows it on the wrong position too because of that.

Could you please change your script so that it reacts to a special ID instead of just to any nav-element?

ksafranski commented 11 years ago

Need to make the script accept an (optional) argument that would allow you to specify the <nav>. So this can be bound to a class or id.

NinaG commented 11 years ago

whoah, you answer faster than light ^^