diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-12-17 08:30:44 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-12-17 08:30:44 -0500 |
commit | c97e17eba9a5bd2272c27b15c18580c964a57f9d (patch) | |
tree | 96225d1ca1e6f9e25b90b65c7c28f2aa9ea018f3 /mod/embed/views | |
parent | 2ab13017f36a7e6c667e9c9006f24c06fb11a1d6 (diff) | |
download | elgg-c97e17eba9a5bd2272c27b15c18580c964a57f9d.tar.gz elgg-c97e17eba9a5bd2272c27b15c18580c964a57f9d.tar.bz2 |
Refs #3971 inserting medium size thumbnails rather than small
Diffstat (limited to 'mod/embed/views')
-rw-r--r-- | mod/embed/views/default/js/embed/embed.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/embed/views/default/js/embed/embed.php b/mod/embed/views/default/js/embed/embed.php index 8a8f0290c..54b9c391d 100644 --- a/mod/embed/views/default/js/embed/embed.php +++ b/mod/embed/views/default/js/embed/embed.php @@ -35,7 +35,12 @@ elgg.embed.insert = function(event) { // generalize this based on a css class attached to what should be inserted var content = ' ' + $(this).find(".embed-insert").parent().html() + ' '; - + + // this is a temporary work-around for #3971 + if (content.indexOf('thumbnail.php') != -1) { + content = content.replace('size=small', 'size=medium'); + } + textArea.val(textArea.val() + content); textArea.focus(); |