I am using Tinynav.js for mobile view in my site and I am facing a small issue in the same. When any user makes an ajax call on the page, the menu gets duplicated ie on each ajax call, number of menu bar is increased by one.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

btopro’s picture

hmm... that's odd... Can you do me a favor and try to use 1.1 and see if the issue is still there? There was a rewrite of the way tinynav is applied to use Drupal behaviors which could cause something like this. Also, are you using the library version or the built in one? Try using the built in one.

teami’s picture

We tried using 1.1 and it worked for us. The problem doesn't seem to persist in Tinynav 1.1 for drupal.

carsonw’s picture

I'm facing the same issue with 7.x-1.2, especially with draggable views. Every time I try and drag a row in a draggable views table, tinynav creates a new instance of the menu.

vinmay’s picture

@casrow : Did you try to downgrade and try 1.1 ? I think you should give it a try...!!

vinmay’s picture

@carsonw : Did you try to downgrade and try 1.1 ? I think you should give it a try...!!

jackhutton’s picture

I was experiencing duplicate menu items and an initial 'error' menu item with the version 7.x-1.2 .. made sure i had the most recent library files ..and finally went back down to the 1.1 version which performs as expected. 1.2 is offering weirdness.
thanks for this..
Love to see a version of your responsive nav ? thx.

btopro’s picture

hmm... sounds like the 1.2 may need to be dropped and a 1.3 rolled that is basically a republish of 1.1 since we can't retract it. 1.2 was supposed to have better ajax support but sounds from reports like it's causing more issues then it solved.

jackhutton’s picture

It is interesting.. I stayed with the 1.2 for quite a bit trying to make it work. I'm not a coder..
but seeing this post..going back, alleviated the headache.

thanks for reviewing it.
and
any plans to for module integration of the responsivenavjs menu ? http://responsive-nav.com/

again. Thanks.

jackhutton’s picture

I'm having the same issue as https://drupal.org/node/1992816 - Shows FALSE or TRUE as first item..
with verson 1.1 now.. not sure how to address this.

hopeful there a version .3 coming out.. and the 'responsive nav' ..

I'll keep working on this..

thank you

jackhutton’s picture

Just saw this.. https://drupal.org/project/responsive_navigation "Responsive Nav js" Nice.. I'll check this out.. thank you

hass’s picture

mike.roberts’s picture

For those of you who were having the issues with menu duplication, can you try this patch?

mike.roberts’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Active » Needs review
btopro’s picture

unable to duplicate issue personally but that patch makes sense since I believe ajax'ed code should be providing a new context which it won't find matches within.

psychobyte’s picture

I had the same issue w/ tinynav 7-1.3 while using panels_ajax_tab and quicktabs. The patch works! Thanks!

btopro’s picture

Status: Needs review » Fixed

Thanks for verification. committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.