]> git.wh0rd.org Git - tt-rss.git/commitdiff
zoomed article: support opening attachments
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 11 Jul 2013 18:14:48 +0000 (22:14 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 11 Jul 2013 18:14:48 +0000 (22:14 +0400)
include/functions.php

index 145f09804579b4951b299c7cbf477197ebbe2ba2..1abaaf60f3621aa81d8088d2f8ff060c8e7ac85c 100644 (file)
                                                <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
                                                <title>Tiny Tiny RSS - ".$line["title"]."</title>
                                                <link rel=\"stylesheet\" type=\"text/css\" href=\"css/tt-rss.css\">
+                                               <script type=\"text/javascript\">
+                                               function openSelectedAttachment(elem) {
+                                                       try {
+                                                               var url = elem[elem.selectedIndex].value;
+
+                                                               if (url) {
+                                                                       window.open(url);
+                                                                       elem.selectedIndex = 0;
+                                                               }
+
+                                                       } catch (e) {
+                                                               exception_error(\"openSelectedAttachment\", e);
+                                                       }
+                                               }
+                                       </script>
                                        </head><body id=\"ttrssZoom\">";
                        }