From 53fd549523c31a80d2a53362db732d7af2e2d644 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 31 Jan 2011 13:10:54 +0300 Subject: [PATCH] focus content pane on view() (closes #312) --- viewfeed.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.39.5