Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlighting tab when links_to_remote used #2

Open
jardous opened this issue Jul 29, 2010 · 0 comments
Open

Highlighting tab when links_to_remote used #2

jardous opened this issue Jul 29, 2010 · 0 comments

Comments

@jardous
Copy link

jardous commented Jul 29, 2010

Active tab (clicked) is not highlighed after user click on it and tab reloads its content. This is only when links_to_remote is used in tab definition. It works fine when using links_to.

There is problem with "each".
Quick fix is to change lib/widgets/tabnav_helper.rb:92 to

success = "var _actives = document.getElementsByClassName('active', $('" + @_tabnav.html[:id]+ "')); for(var i=0; i<_actives.length; i++) { _actives[i].removeClassName('active'); };"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant