summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-28 10:56:29 +0400
committerAndrew Dolgov <[email protected]>2013-03-28 10:56:29 +0400
commitf9432f2630e9340cd6a45842b453d3bf78ace0f7 (patch)
tree2ea9516dfd27ee162897b1ba8b918e6813e521d6 /js
parentba79634c2df8a52009eeee03a4cfbcfa212432ff (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.js13
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);
+ }
+}