fix createLinks (image links etc.)
This commit is contained in:
parent
7b91ef5f56
commit
8cb557738b
1 changed files with 6 additions and 0 deletions
|
@ -295,6 +295,12 @@ pandora.createLinks = function($element) {
|
||||||
$element.on({
|
$element.on({
|
||||||
click: function(e) {
|
click: function(e) {
|
||||||
var $target = $(e.target);
|
var $target = $(e.target);
|
||||||
|
while (true) {
|
||||||
|
if ($target.is('a') or $target == $element) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
$target = $($target.parent());
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
$target.is('a')
|
$target.is('a')
|
||||||
&& !$($target.parent()).is('.OxEditable')
|
&& !$($target.parent()).is('.OxEditable')
|
||||||
|
|
Loading…
Reference in a new issue