Permalink
Browse files

fix(embed): embed link no longer leaves the page before events are se…

…t up

Fixes #8284
  • Loading branch information...
mrclay committed May 13, 2015
1 parent 765fcd0 commit f50e9aa3eeafa9ec2d8d21cc6de715352c5bb19d
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/embed/start.php
View
@@ -80,7 +80,10 @@ function embed_longtext_menu($hook, $type, $items, $vars) {
$items[] = ElggMenuItem::factory(array(
'name' => 'embed',
'href' => $url,
'href' => 'javascript:void()',
'data-colorbox-opts' => json_encode([
'href' => elgg_normalize_url($url),
]),
'text' => $text,
'rel' => "embed-lightbox-{$vars['id']}",
'link_class' => "elgg-longtext-control elgg-lightbox embed-control embed-control-{$vars['id']}",

0 comments on commit f50e9aa

Please sign in to comment.