Commit Graph

12 Commits

Author SHA1 Message Date
Guillermo Rauch
bc178a5228 It now works before dom is ready :) 2012-03-01 19:53:51 -03:00
Guillermo Rauch
110765dbc1 Misc refactoring.
- Switched to `hashchange` listening instead of delegation
  We still check that the given hash exists as a `href` within a valid
  Skeleton tabs markup, but you can now send links around that focus
  on tabs.

  As an example, if I tweet out mypage.com/#activetab, it will check that
  `#activetab` is a valid href in an anchor within an `<ul class="tabs">`
  element, and if so, make that tab active.

- In addition, you can have multiple anchors in the page that
  trigger tabs by simply setting the appropriate `href`.

- Leverage `closest` and `find` instead of `parent`, `siblings` and
  `children` (code simplification).
2012-03-01 19:38:50 -03:00
Guillermo Rauch
4c7d6b0b3e Don't assume $ is jQuery. Rely on jQuery global instead. 2012-03-01 19:33:42 -03:00
Guillermo Rauch
6da48f64c3 Switched to 2-space indentation. 2012-03-01 19:32:51 -03:00
Guillermo Rauch
17f0141da9 JSDoc-compatible comment formatting. 2012-03-01 19:30:57 -03:00
Guillermo Rauch
d72703e77a Clear whitespace. 2012-03-01 19:30:17 -03:00
Scott Rabin
aeaf1b4bb7 Changed .delegate to .on for future compatibility with jQuery 2012-01-26 00:39:23 -05:00
Dave Gamache
94062ea1d3 fixing 768 alpha omega bug, changing the button css to clean it up a bit and resetting version on tabs 2012-01-25 21:27:50 -08:00
Dave Gamache
b43be292ee changing to lastest jQuery version and using new tabs js 2012-01-25 20:51:32 -08:00
Dave Gamache
751c738bbe reverting to old tabs.js because others don't function correctly in IE8- 2011-08-17 22:11:39 -07:00
Dave Gamache
0ed1e6e1ed updaing docs and commenting all the CSS in correctly 2011-08-17 21:58:20 -07:00
Dave Gamache
5e668f243b adding the actual tabs.js file 2011-08-17 18:37:35 -07:00