mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 01:35:54 +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:
@@ -3693,13 +3693,15 @@
|
||||
$rv .= "<hr clear='both'/>";
|
||||
}
|
||||
|
||||
$rv .= "<br/><div dojoType=\"dijit.form.DropDownButton\">".
|
||||
"<span>" . __('Attachments')."</span>";
|
||||
$rv .= "<div dojoType=\"dijit.Menu\" style=\"display: none;\">";
|
||||
$rv .= "<select onchange=\"openSelectedAttachment(this)\">".
|
||||
"<option value=''>" . __('Attachments')."</option>";
|
||||
|
||||
foreach ($entries_html as $entry) { $rv .= $entry; };
|
||||
foreach ($entries as $entry) {
|
||||
$rv .= "<option value=\"".htmlspecialchars($entry["url"])."\">" . htmlspecialchars($entry["filename"]) . "</option>";
|
||||
|
||||
$rv .= "</div></div>";
|
||||
};
|
||||
|
||||
$rv .= "</select>";
|
||||
}
|
||||
|
||||
return $rv;
|
||||
|
||||
Reference in New Issue
Block a user