rails-widgets icon indicating copy to clipboard operation
rails-widgets copied to clipboard

Highlighting tab when links_to_remote used

Open jardous opened this issue 14 years ago • 0 comments

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

jardous avatar Jul 29 '10 12:07 jardous