{"issue":{"user":{"id":15662,"login":"slash","url":"https://api.github.com/users/slash","avatar_url":"https://secure.gravatar.com/avatar/25ecb527faa9bd2b30138d8ac3358f1b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"25ecb527faa9bd2b30138d8ac3358f1b"},"milestone":null,"title":"Issue #180 - Make ability for any button/link to activate tabs and their links","created_at":"2011-12-20T02:28:25Z","labels":[],"updated_at":"2011-12-21T00:33:48Z","state":"open","id":2608678,"html_url":"https://github.com/zurb/foundation/issues/181","closed_at":null,"pull_request":{"patch_url":"https://github.com/zurb/foundation/pull/181.patch","html_url":"https://github.com/zurb/foundation/pull/181","diff_url":"https://github.com/zurb/foundation/pull/181.diff"},"body":"- added activateTabByHash to be able to navigate from anywhere;\r\n- added recursive tab activation. Each activated tab searches for it's parent;\r\n- added click on any \"a.nav\" object, which will trigger navigate by it's href to any id=\"href-valueTab\" object;\r\n- activateTabByHash is searching for objects to activate by \"dl.tab > dd > a[href\" vs. just \"a[href\", so a.nav buttons with the same href as tabs li > a objects - do not get active classes;","number":181,"url":"https://api.github.com/repos/zurb/foundation/issues/181","comments":3,"assignee":null},"comment":{"user":{"id":15662,"login":"slash","url":"https://api.github.com/users/slash","avatar_url":"https://secure.gravatar.com/avatar/25ecb527faa9bd2b30138d8ac3358f1b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"25ecb527faa9bd2b30138d8ac3358f1b"},"created_at":"2011-12-21T00:33:48Z","updated_at":"2011-12-21T00:33:48Z","id":3227776,"body":"You probably need a good demo case for this. I may be making one, if so - i will do another pull request.\r\nThis speeds prototyping up a ton.\r\n\r\nI was thinking that for the benefit of simplification of prototyping a selector without class (\".nav\" can be omitted) can be used.\r\nSo that simple links will just work.\r\nIt may slow things down in production a tiny bit through.\r\n\r\n```javascript\r\n$('a[href^=\"#\"]').click \r\n# can be used vs.\r\n$('a.nav').click\r\n```\r\n\r\nAlso \"tabs-content\" can be renamed to \"grouped-content\", as this concept can be used without tabs.\r\n\r\n\"tabs\" can also be simplified.\r\n\r\nWhen one navigates to #link, \r\nsearch for \"a[href=#link]\" and \"* > a[href=#link]\" with sibling that has an active class.\r\nIf found - means that it's apart of some navigation block. Remove the active class from the sibling and give it to the found block.\r\nThat way you can do tabs or anything else you want (navigation, etc).\r\nI will work on this concept.\r\n ","url":"https://api.github.com/repos/zurb/foundation/issues/comments/3227776"},"action":"created"}