From 8cb557738bbfee1300137c77ad41995a33ee5297 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 20 Nov 2014 21:20:59 +0000 Subject: [PATCH] fix createLinks (image links etc.) --- static/js/utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/js/utils.js b/static/js/utils.js index f3e3a0b3..a3d7ae72 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -295,6 +295,12 @@ pandora.createLinks = function($element) { $element.on({ click: function(e) { var $target = $(e.target); + while (true) { + if ($target.is('a') or $target == $element) { + break; + } + $target = $($target.parent()); + } if ( $target.is('a') && !$($target.parent()).is('.OxEditable')