diff options
author | cash <cash.costello@gmail.com> | 2011-06-26 09:21:09 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-06-26 09:21:09 -0400 |
commit | 9ab2a7f6ea6650fcbbb20f9d0dd207de2d58b286 (patch) | |
tree | c6954fa77312ac9ca77ac0f1458e7be1dc4c2579 /mod/embed/views/default/js | |
parent | 5240a01d98d7c8b99c9d9c3f820de9c598ec5849 (diff) | |
download | elgg-9ab2a7f6ea6650fcbbb20f9d0dd207de2d58b286.tar.gz elgg-9ab2a7f6ea6650fcbbb20f9d0dd207de2d58b286.tar.bz2 |
updated based on Brett's comments and removed old stuff related to facebox lightbox
Diffstat (limited to 'mod/embed/views/default/js')
-rw-r--r-- | mod/embed/views/default/js/embed/embed.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mod/embed/views/default/js/embed/embed.php b/mod/embed/views/default/js/embed/embed.php index 39d400715..bf04c0963 100644 --- a/mod/embed/views/default/js/embed/embed.php +++ b/mod/embed/views/default/js/embed/embed.php @@ -8,8 +8,8 @@ elgg.embed.init = function() { // caches the current textarea id $(".embed-control").live('click', function() { var classes = $(this).attr('class'); - var class = classes.split(/[, ]+/).pop(); - var textAreaId = class.substr(class.indexOf('embed-control-') + "embed-control-".length); + var embedClass = classes.split(/[, ]+/).pop(); + var textAreaId = embedClass.substr(embedClass.indexOf('embed-control-') + "embed-control-".length); elgg.embed.textAreaId = textAreaId; }); @@ -76,8 +76,9 @@ elgg.embed.submit = function(event) { } }); - // this is bubbling up the DOM and causing a submission so return false - return false; + // this was bubbling up the DOM causing a submission + event.preventDefault(); + event.stopPropagation(); } /** |