aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/views/default/js
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-03 21:56:14 -0400
committercash <cash.costello@gmail.com>2011-10-03 21:56:14 -0400
commit9d5c00c78c0666a31485d870a1e657d4557b23c4 (patch)
tree936fbeaf02a15e3559612ea1cb0c416f41597a8d /mod/embed/views/default/js
parentfa04d6615760a014f7557f2d28ff864eebce8551 (diff)
downloadelgg-9d5c00c78c0666a31485d870a1e657d4557b23c4.tar.gz
elgg-9d5c00c78c0666a31485d870a1e657d4557b23c4.tar.bz2
using better insert class
Diffstat (limited to 'mod/embed/views/default/js')
-rw-r--r--mod/embed/views/default/js/embed/embed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/embed/views/default/js/embed/embed.php b/mod/embed/views/default/js/embed/embed.php
index bb80919a9..3126e12f7 100644
--- a/mod/embed/views/default/js/embed/embed.php
+++ b/mod/embed/views/default/js/embed/embed.php
@@ -34,7 +34,7 @@ elgg.embed.insert = function(event) {
var textArea = $('#' + textAreaId);
// generalize this based on a css class attached to what should be inserted
- var content = ' ' + $(this).find(".elgg-image").html() + ' ';
+ var content = ' ' + $(this).find(".embed-insert").parent().html() + ' ';
textArea.val(textArea.val() + content);
textArea.focus();