summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-17 10:16:17 +0300
committerAndrew Dolgov <[email protected]>2010-11-17 10:16:17 +0300
commit8a6702ad7a6bbc0d34fdd178c34c0d0a80571a85 (patch)
tree7620a162bfc1b91ebd8dd1665554272ca59de8fd
parent439caa8b93b8d0f38e0c565367511695e4b5c6f8 (diff)
fix article header open in new tab button
-rw-r--r--functions.php4
-rw-r--r--viewfeed.js3
2 files changed, 4 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index d8e411ece..d2c94b49d 100644
--- a/functions.php
+++ b/functions.php
@@ -4634,7 +4634,7 @@
print "<img src=\"".theme_image($link, 'images/art-zoom.png')."\"
class='tagsPic' style=\"cursor : pointer\"
- onclick=\"zoomToArticle($id)\"
+ onclick=\"zoomToArticle(event, $id)\"
alt='Zoom' title='".__('Open article in new tab')."'>";
$note_escaped = htmlspecialchars($line['note'], ENT_QUOTES);
@@ -5241,7 +5241,7 @@
print "<div style=\"float : right\">";
print "<img src=\"images/art-zoom.png\"
- onclick=\"zoomToArticle($id)\"
+ onclick=\"zoomToArticle(event, $id)\"
style=\"cursor : pointer\"
alt='Zoom'
title='".__('Open article in new tab')."'>";
diff --git a/viewfeed.js b/viewfeed.js
index b44530986..22465013e 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -1724,7 +1724,8 @@ function zoomToArticle(event, id) {
return dijit.byId("content-tabs").selectChild(dijit.byId("ATAB-" + id));
if (cached_article) {
-
+ closeArticlePanel();
+
var article_pane = new dijit.layout.ContentPane({
title: __("Loading...") , content: cached_article,
style: 'padding : 0px;',