Skip to content

Highlighting tab when links_to_remote used #2

Description

@jardous

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'); };"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions