diff options
-rw-r--r-- | include/functions.php | 15 |
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\">"; } |