rails-widgets
rails-widgets copied to clipboard
Highlighting tab when links_to_remote used
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'); };"