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) {
|
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;
|
||||||
|
|
Loading…
Reference in a new issue