diff options
author | Andrew Dolgov <[email protected]> | 2005-12-13 10:36:27 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-12-13 10:36:27 +0100 |
commit | c3f348c2fa79c2026774a9c2fd412406e36a3f2f (patch) | |
tree | d7b88d97b89b4f2f3a24695a3746dba63cb86bb7 | |
parent | 280ee9a3398c8fecd975f22147eb5f8c10552b77 (diff) |
fix broken keyboard navigation
-rw-r--r-- | backend.php | 6 | ||||
-rw-r--r-- | functions.js | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/backend.php b/backend.php index f7c4e0d4e..7df13c0ae 100644 --- a/backend.php +++ b/backend.php @@ -471,8 +471,10 @@ <a href=\"javascript:toggleCollapseCat($cat_id)\">$tmp_category <span id=\"FCATCTR-$cat_id\" class=\"$catctr_class\">($cat_unread unread)</span></a></li>"; - print "<li id=\"feedCatHolder\" class=\"$holder_class\"> - <ul class=\"feedCatList\">"; + + // !!! NO SPACE before <ul...feedCatList - breaks firstChild DOM function + // -> keyboard navigation, etc. + print "<li id=\"feedCatHolder\" class=\"$holder_class\"><ul class=\"feedCatList\">"; } printFeedEntry($feed_id, $class, $feed, $unread, diff --git a/functions.js b/functions.js index a77854827..8f18f4c47 100644 --- a/functions.js +++ b/functions.js @@ -152,7 +152,7 @@ function cleanSelectedList(element) { var child = content.childNodes[i]; if (child.id == "feedCatHolder") { - var fcat = child.firstChild; + var fcat = child.lastChild; for (j = 0; j < fcat.childNodes.length; j++) { var feed = fcat.childNodes[j]; feed.className = feed.className.replace("Selected", ""); @@ -584,7 +584,7 @@ function getRelativeFeedId(list, id, direction) { for (i = 0; i < list.childNodes.length; i++) { var child = list.childNodes[i]; if (child.id == "feedCatHolder") { - if (child.firstChild) { + if (child.lastChild) { var cr = getRelativeFeedId(child.firstChild, id, direction); if (cr) return cr; } |