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 /include/functions.php | |
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 'include/functions.php')
-rw-r--r-- | include/functions.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/functions.php b/include/functions.php index dae87dab3..dcaa67e56 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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; |