From: Andrew Dolgov Date: Mon, 31 Jan 2011 10:10:54 +0000 (+0300) Subject: focus content pane on view() (closes #312) X-Git-Tag: 1.5.2~45 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=53fd549523c31a80d2a53362db732d7af2e2d644;p=tt-rss.git focus content pane on view() (closes #312) --- diff --git a/viewfeed.js b/viewfeed.js index c6d747af..26a618f5 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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);