]> git.wh0rd.org - tt-rss.git/blobdiff - js/FeedTree.js
initial for JS strict mode
[tt-rss.git] / js / FeedTree.js
old mode 100644 (file)
new mode 100755 (executable)
index 8497009..aff481e
@@ -267,6 +267,7 @@ require(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"]
                                "dijitTreeRow Error";
 
                        if (item.unread > 0) rc += " Unread";
+                       if (item.updates_disabled > 0) rc += " UpdatesDisabled";
 
                        return rc;
                },
@@ -357,6 +358,11 @@ require(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"]
                                if (!is_cat) this._expandNode(treeNode);
                                this.set("selectedNodes", [treeNode]);
                                this.focusNode(treeNode);
+
+                               // focus headlines to route key events there
+                               setTimeout(function() {
+                                       $("headlines-frame").focus();
+                               }, 0);
                        }
                },
                setFeedIcon: function(feed, is_cat, src) {