mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:15:56 +00:00
since dojo dropdowns won't work in article content because of html escaping trick, replace attachment dropdown with generic html controls
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user