diff options
author | Andrew Dolgov <[email protected]> | 2013-03-28 10:56:29 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-28 10:56:29 +0400 |
commit | f9432f2630e9340cd6a45842b453d3bf78ace0f7 (patch) | |
tree | 2ea9516dfd27ee162897b1ba8b918e6813e521d6 /js | |
parent | ba79634c2df8a52009eeee03a4cfbcfa212432ff (diff) |
since dojo dropdowns won't work in article content because of html escaping trick, replace attachment dropdown with generic html controls
Diffstat (limited to 'js')
-rw-r--r-- | js/viewfeed.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index 28d4ea8ec..1d04c4276 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -2115,3 +2115,16 @@ function displayArticleUrl(id) { } } +function openSelectedAttachment(elem) { + try { + var url = elem[elem.selectedIndex].value; + + if (url) { + window.open(url); + elem.selectedIndex = 0; + } + + } catch (e) { + exception_error("openSelectedAttachment", e); + } +} |