mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
ctrl-shift click - open article in background tab
This commit is contained in:
+11
-6
@@ -1716,7 +1716,7 @@ function getArticleUnderPointer() {
|
|||||||
return post_under_pointer;
|
return post_under_pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
function zoomToArticle(id) {
|
function zoomToArticle(event, id) {
|
||||||
try {
|
try {
|
||||||
/* var w = window.open("backend.php?op=view&mode=zoom&id=" + param_escape(id),
|
/* var w = window.open("backend.php?op=view&mode=zoom&id=" + param_escape(id),
|
||||||
"ttrss_zoom_" + id,
|
"ttrss_zoom_" + id,
|
||||||
@@ -1725,7 +1725,8 @@ function zoomToArticle(id) {
|
|||||||
var cached_article = cache_find(id);
|
var cached_article = cache_find(id);
|
||||||
|
|
||||||
if (dijit.byId("ATAB-" + 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) {
|
if (cached_article) {
|
||||||
|
|
||||||
@@ -1736,7 +1737,9 @@ function zoomToArticle(id) {
|
|||||||
closable: true });
|
closable: true });
|
||||||
|
|
||||||
dijit.byId("content-tabs").addChild(article_pane);
|
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))
|
if ($("PTITLE-" + id))
|
||||||
article_pane.attr('title', $("PTITLE-" + id).innerHTML);
|
article_pane.attr('title', $("PTITLE-" + id).innerHTML);
|
||||||
@@ -1765,7 +1768,9 @@ function zoomToArticle(id) {
|
|||||||
closable: true });
|
closable: true });
|
||||||
|
|
||||||
dijit.byId("content-tabs").addChild(article_pane);
|
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))
|
if ($("PTITLE-" + id))
|
||||||
article_pane.attr('title', $("PTITLE-" + id).innerHTML);
|
article_pane.attr('title', $("PTITLE-" + id).innerHTML);
|
||||||
@@ -2062,7 +2067,7 @@ function cdmClicked(event, id) {
|
|||||||
} else {
|
} else {
|
||||||
toggleSelected(id, true);
|
toggleSelected(id, true);
|
||||||
toggleUnread(id, 0, false);
|
toggleUnread(id, 0, false);
|
||||||
zoomToArticle(id);
|
zoomToArticle(event, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@@ -2082,7 +2087,7 @@ function hlClicked(event, id) {
|
|||||||
selectArticles('none');
|
selectArticles('none');
|
||||||
toggleSelected(id);
|
toggleSelected(id);
|
||||||
toggleUnread(id, 0, false);
|
toggleUnread(id, 0, false);
|
||||||
zoomToArticle(id);
|
zoomToArticle(event, id);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user