forked from 0x2620/pandora
fix createLinks
This commit is contained in:
parent
33d05f0cab
commit
f57a2afa47
1 changed files with 4 additions and 5 deletions
|
@ -299,8 +299,7 @@ pandora.createLinks = function($element) {
|
|||
if ($target.is('a') or $target == $element) {
|
||||
break;
|
||||
}
|
||||
e.target = $target.parent();
|
||||
$target = $(e.target);
|
||||
$target = $($target.parent());
|
||||
}
|
||||
if (
|
||||
$target.is('a')
|
||||
|
@ -308,10 +307,10 @@ pandora.createLinks = function($element) {
|
|||
&& !$($target.parent()).is('.OxEditableContent')
|
||||
) {
|
||||
e.preventDefault();
|
||||
if (isExternalLink(e.target)) {
|
||||
pandora.openLink(e.target.href);
|
||||
if (isExternalLink($target[0])) {
|
||||
pandora.openLink($target[0].href);
|
||||
} else {
|
||||
pandora.clickLink(e);
|
||||
pandora.clickLink({target: $target[0]});
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue