mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 10:21:28 +00:00
misc tab fixes
This commit is contained in:
@@ -4635,7 +4635,7 @@
|
|||||||
|
|
||||||
print "<img src=\"".theme_image($link, 'images/digest_checkbox.png')."\"
|
print "<img src=\"".theme_image($link, 'images/digest_checkbox.png')."\"
|
||||||
class='tagsPic' style=\"cursor : pointer\"
|
class='tagsPic' style=\"cursor : pointer\"
|
||||||
onclick=\"closeArticlePanel()\"
|
onclick=\"closeArticlePanel($id)\"
|
||||||
alt='Zoom' title='".__('Close this panel')."'>";
|
alt='Zoom' title='".__('Close this panel')."'>";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
12
viewfeed.js
12
viewfeed.js
@@ -1724,11 +1724,15 @@ function zoomToArticle(id) {
|
|||||||
|
|
||||||
var cached_article = cache_find(id);
|
var cached_article = cache_find(id);
|
||||||
|
|
||||||
|
if (dijit.byId("ATAB-" + id))
|
||||||
|
return dijit.byId("content-tabs").selectChild(dijit.byId("ATAB-" + id));
|
||||||
|
|
||||||
if (cached_article) {
|
if (cached_article) {
|
||||||
|
|
||||||
var article_pane = new dijit.layout.ContentPane({
|
var article_pane = new dijit.layout.ContentPane({
|
||||||
title: __("Loading...") , content: cached_article,
|
title: __("Loading...") , content: cached_article,
|
||||||
style: 'padding : 0px;',
|
style: 'padding : 0px;',
|
||||||
|
id: 'ATAB-' + id,
|
||||||
closable: true });
|
closable: true });
|
||||||
|
|
||||||
dijit.byId("content-tabs").addChild(article_pane);
|
dijit.byId("content-tabs").addChild(article_pane);
|
||||||
@@ -1757,6 +1761,7 @@ function zoomToArticle(id) {
|
|||||||
var article_pane = new dijit.layout.ContentPane({
|
var article_pane = new dijit.layout.ContentPane({
|
||||||
title: "article-" + id , content: content,
|
title: "article-" + id , content: content,
|
||||||
style: 'padding : 0px;',
|
style: 'padding : 0px;',
|
||||||
|
id: 'ATAB-' + id,
|
||||||
closable: true });
|
closable: true });
|
||||||
|
|
||||||
dijit.byId("content-tabs").addChild(article_pane);
|
dijit.byId("content-tabs").addChild(article_pane);
|
||||||
@@ -2232,7 +2237,12 @@ function headlineActionsChange(elem) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeArticlePanel() {
|
function closeArticlePanel(id) {
|
||||||
|
|
||||||
|
if (id)
|
||||||
|
if (dijit.byId("ATAB-" + id))
|
||||||
|
return dijit.byId("content-tabs").removeChild(dijit.byId("ATAB-" + id));
|
||||||
|
|
||||||
if (dijit.byId("content-insert"))
|
if (dijit.byId("content-insert"))
|
||||||
dijit.byId("headlines-wrap-inner").removeChild(
|
dijit.byId("headlines-wrap-inner").removeChild(
|
||||||
dijit.byId("content-insert"));
|
dijit.byId("content-insert"));
|
||||||
|
|||||||
Reference in New Issue
Block a user