print "<img src=\"".theme_image($link, 'images/digest_checkbox.png')."\"
class='tagsPic' style=\"cursor : pointer\"
- onclick=\"closeArticlePanel()\"
+ onclick=\"closeArticlePanel($id)\"
alt='Zoom' title='".__('Close this panel')."'>";
} else {
var cached_article = cache_find(id);
+ if (dijit.byId("ATAB-" + id))
+ return dijit.byId("content-tabs").selectChild(dijit.byId("ATAB-" + id));
+
if (cached_article) {
var article_pane = new dijit.layout.ContentPane({
title: __("Loading...") , content: cached_article,
style: 'padding : 0px;',
+ id: 'ATAB-' + id,
closable: true });
dijit.byId("content-tabs").addChild(article_pane);
var article_pane = new dijit.layout.ContentPane({
title: "article-" + id , content: content,
style: 'padding : 0px;',
+ id: 'ATAB-' + id,
closable: true });
dijit.byId("content-tabs").addChild(article_pane);
}
}
-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"))
dijit.byId("headlines-wrap-inner").removeChild(
dijit.byId("content-insert"));