]> git.wh0rd.org - tt-rss.git/commitdiff
fix article header open in new tab button
authorAndrew Dolgov <fox@fakecake.org>
Wed, 17 Nov 2010 07:16:17 +0000 (10:16 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Wed, 17 Nov 2010 07:16:17 +0000 (10:16 +0300)
functions.php
viewfeed.js

index d8e411ece7f1e267aae8f6958514120d810528dd..d2c94b49d2c02be91b1cad17c4073df03d30dc66 100644 (file)
 
                                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);
                                        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')."'>";
index b44530986d6581b5067d9c284ac2c30dcc2d9105..22465013e0d90c1b5f20e6c7f08ef90b963216f8 100644 (file)
@@ -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;',