aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/views/default/js/embed/embed.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/embed/views/default/js/embed/embed.php')
-rw-r--r--mod/embed/views/default/js/embed/embed.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/embed/views/default/js/embed/embed.php b/mod/embed/views/default/js/embed/embed.php
index ea92ba1fd..5c15cd95a 100644
--- a/mod/embed/views/default/js/embed/embed.php
+++ b/mod/embed/views/default/js/embed/embed.php
@@ -1,9 +1,10 @@
+//<script>
elgg.provide('elgg.embed');
elgg.embed.init = function() {
// inserts the embed content into the textarea
- $(".embed-wrapper .elgg-item").live('click', elgg.embed.insert);
+ $(".embed_data").live('click', elgg.embed.insert);
// caches the current textarea id
$(".embed-control").live('click', function() {
@@ -30,7 +31,7 @@ elgg.embed.init = function() {
* @return void
*/
elgg.embed.insert = function(event) {
-
+console.log("omfg");
var textAreaId = elgg.embed.textAreaId;
var content = $(this).data('embed_code');