Allow <li> elements to act as link tags
Reported by paolo.dona+railswidgets (at gmail) | November 26th, 2008 @ 10:17 PM
New issue report by derek.mcloughlin: If you have an
- element that has a background image (e.g. for curved borders), the element can be clicked on, but the surrounding
- element can't. It would be nice if the
- element itself could be clickable using a bit of JavaScript
See the tabs implemented on beta.floorplanner.com for an example.
This addition to the code does the trick:
li_options[:onclick] = "document.location='#{tab.link[:controller]}';"
Patch is attached, but I don't know if this is the right way to do it or if it's even possible do to this without changing the code.
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Rails Widgets is a collection of UI widgets for Ruby On Rails that you can put in your own application at the speed of light!