fix createLinks

This commit is contained in:
rolux 2014-11-20 21:32:42 +00:00
parent 33d05f0cab
commit f57a2afa47

View file

@ -299,8 +299,7 @@ pandora.createLinks = function($element) {
if ($target.is('a') or $target == $element) { if ($target.is('a') or $target == $element) {
break; break;
} }
e.target = $target.parent(); $target = $($target.parent());
$target = $(e.target);
} }
if ( if (
$target.is('a') $target.is('a')
@ -308,10 +307,10 @@ pandora.createLinks = function($element) {
&& !$($target.parent()).is('.OxEditableContent') && !$($target.parent()).is('.OxEditableContent')
) { ) {
e.preventDefault(); e.preventDefault();
if (isExternalLink(e.target)) { if (isExternalLink($target[0])) {
pandora.openLink(e.target.href); pandora.openLink($target[0].href);
} else { } else {
pandora.clickLink(e); pandora.clickLink({target: $target[0]});
} }
} }
return false; return false;