]> git.wh0rd.org Git - tt-rss.git/commitdiff
focus content pane on view() (closes #312)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 31 Jan 2011 10:10:54 +0000 (13:10 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 31 Jan 2011 10:10:54 +0000 (13:10 +0300)
viewfeed.js

index c6d747af311df271e19ff3cbc4626931dd3c4c56..26a618f589a2e65e8fff07cad33a0090c952a9fa 100644 (file)
@@ -207,7 +207,11 @@ function render_article(article) {
                
                c.attr('content', article);
 
-               correctHeadlinesOffset(getActiveArticleId());           
+               correctHeadlinesOffset(getActiveArticleId());
+
+               try {
+                       c.focus();
+               } catch (e) { };
 
        } catch (e) {
                exception_error("render_article", e);