]> git.wh0rd.org Git - tt-rss.git/commitdiff
add post header menu
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Nov 2010 18:20:59 +0000 (21:20 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Nov 2010 18:20:59 +0000 (21:20 +0300)
functions.php

index dd42ea4fc3939912dee50a2c4484852fdafbbe4e..70da5ab331c0272180551e79089148b763e6a04b 100644 (file)
                                truncate_string(strip_tags($line['title']), 15) . "</div>";
 
                        print "<div class=\"postReply\" id=\"POST-$id\">";
-                       print "<div 
-                               onclick=\"return postClicked(event, $id)\"
-                               class=\"postHeader\">";
+
+                       print "<div dojoType=\"dijit.Menu\" style=\"display: none;\" 
+                               targetNodeIds=\"POSTHDR-$id\">";
+                       print "<div onclick=\"postOpenInNewTab(event, $id)\" 
+                               dojoType=\"dijit.MenuItem\">".__('View in a new tab')."</div>";
+                       print "<div dojoType=\"dijit.MenuSeparator\"></div>";
+                       print "<div onclick=\"openArticleInNewWindow($id)\" 
+                               dojoType=\"dijit.MenuItem\">".__('Open original article')."</div>";
+                       print "</div>";
+
+                       print "<div onclick=\"return postClicked(event, $id)\"
+                               class=\"postHeader\" id=\"POSTHDR-$id\">";
 
                        $entry_author = $line["author"];