summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-07-11 22:14:48 +0400
committerAndrew Dolgov <[email protected]>2013-07-11 22:14:48 +0400
commit761af552d9739e0c728c160f0d54589f5bf4e6be (patch)
treeee2c5d15ce0eff9090819cac63b94485d58e621c
parent8096e309a5138d47af0314059fdca59f17c42659 (diff)
zoomed article: support opening attachments
-rw-r--r--include/functions.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 145f09804..1abaaf60f 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -3166,6 +3166,21 @@
<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\">";
}