Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Commit

Permalink
Updated EmulateTab
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpurra committed Feb 14, 2012
1 parent a80054f commit f3e385d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ JoelPurra.PlusOnTab.plusAsTab($(selector), false);
```

### Plussable elements
Elements that can be focused/tabbed include `<input>`, `<select>`, `<textarea>`, `<button>` and `<a href="...">` (the `href` attribute must exist). These are also the elements that can be plussable.
Elements that can be focused/tabbed include `<input>`, `<select>`, `<textarea>`, `<button>` and `<a href="...">` (the `href` attribute must exist and the tag must have some contents). These are also the elements that can be plussable.

Note that `<input type="hidden" />`, `<a>` (without `href`), `disabled="disabled"` or `display: none;` elements cannot be focused.
Note that `<input type="hidden" />`, `<a>` (without `href` or empty contents), `disabled="disabled"` or `display: none;` elements cannot be focused.

### Static elements
Static plussable html elements can have, or be contained within elements that have, the attribute `data-plus-as-tab="true"` or the class `.plus-as-tab`. They are enabled automatically when the library has been loaded/executed.
Expand Down
2 changes: 1 addition & 1 deletion lib/emulatetab
Submodule emulatetab updated 4 files
+3 −0 .gitmodules
+2 −2 README.md
+20 −3 src/emulatetab.joelpurra.js
+1 −0 test/qunit
2 changes: 0 additions & 2 deletions src/plusastab.joelpurra.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ var JoelPurra = JoelPurra || {};

var options = $.extend(true, {}, internalDefaults);

// TODO: get code for :focusable, :tabbable from jQuery UI?
var focusable = ":input, a[href]";
var enablePlusAsTab = ".plus-as-tab, [data-plus-as-tab=true]";
var disablePlusAsTab = ".disable-plus-as-tab, [data-plus-as-tab=false]";

Expand Down

0 comments on commit f3e385d

Please sign in to comment.