From f9432f2630e9340cd6a45842b453d3bf78ace0f7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 28 Mar 2013 10:56:29 +0400 Subject: since dojo dropdowns won't work in article content because of html escaping trick, replace attachment dropdown with generic html controls --- js/viewfeed.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'js/viewfeed.js') 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); + } +} -- cgit v1.2.3