From 8236c1c4fad393dc6577c1dddd3c7c9671a12352 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 8 Aug 2013 14:44:59 +0000 Subject: [PATCH] cosmetic changes --- static/js/utils.js | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/static/js/utils.js b/static/js/utils.js index ca53153c3..eccc6a63d 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -264,25 +264,24 @@ pandora.createLinks = function($element) { return target.hostname != document.location.hostname || Ox.startsWith(target.pathname, '/static'); } - $element - .on({ - click: function(e) { - var $target = $(e.target); - if ( - $target.is('a') - && !$($target.parent()).is('.OxEditable') - && !$($target.parent()).is('.OxEditableContent') - ) { - e.preventDefault(); - if (isExternalLink(e.target)) { - window.open('/url=' + encodeURIComponent(e.target.href), '_blank'); - } else { - pandora.clickLink(e); - } + $element.on({ + click: function(e) { + var $target = $(e.target); + if ( + $target.is('a') + && !$($target.parent()).is('.OxEditable') + && !$($target.parent()).is('.OxEditableContent') + ) { + e.preventDefault(); + if (isExternalLink(e.target)) { + window.open('/url=' + encodeURIComponent(e.target.href), '_blank'); + } else { + pandora.clickLink(e); } - return false; } - }); + return false; + } + }); }; (function() {