]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #3971 inserting medium size thumbnails rather than small
authorCash Costello <cash.costello@gmail.com>
Sat, 17 Dec 2011 13:30:44 +0000 (08:30 -0500)
committerCash Costello <cash.costello@gmail.com>
Sat, 17 Dec 2011 13:30:44 +0000 (08:30 -0500)
mod/embed/views/default/js/embed/embed.php

index 8a8f0290c4d9fe6156bd8129832dc703a86ababc..54b9c391d310e10e8393a0f619517414176c0b2d 100644 (file)
@@ -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();