return post_under_pointer;
}
-function zoomToArticle(id) {
+function zoomToArticle(event, id) {
try {
/* var w = window.open("backend.php?op=view&mode=zoom&id=" + param_escape(id),
"ttrss_zoom_" + id,
var cached_article = cache_find(id);
if (dijit.byId("ATAB-" + id))
- return dijit.byId("content-tabs").selectChild(dijit.byId("ATAB-" + id));
+ if (!event || !event.shiftKey)
+ return dijit.byId("content-tabs").selectChild(dijit.byId("ATAB-" + id));
if (cached_article) {
closable: true });
dijit.byId("content-tabs").addChild(article_pane);
- dijit.byId("content-tabs").selectChild(article_pane);
+
+ if (!event || !event.shiftKey)
+ dijit.byId("content-tabs").selectChild(article_pane);
if ($("PTITLE-" + id))
article_pane.attr('title', $("PTITLE-" + id).innerHTML);
closable: true });
dijit.byId("content-tabs").addChild(article_pane);
- dijit.byId("content-tabs").selectChild(article_pane);
+
+ if (!event || !event.shiftKey)
+ dijit.byId("content-tabs").selectChild(article_pane);
if ($("PTITLE-" + id))
article_pane.attr('title', $("PTITLE-" + id).innerHTML);
} else {
toggleSelected(id, true);
toggleUnread(id, 0, false);
- zoomToArticle(id);
+ zoomToArticle(event, id);
}
} catch (e) {
selectArticles('none');
toggleSelected(id);
toggleUnread(id, 0, false);
- zoomToArticle(id);
+ zoomToArticle(event, id);
return false;
}