From 6a0f59acfe1a5a54a3f525c13f7320e58698fb06 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 22 Feb 2013 08:41:22 +0530 Subject: [PATCH] handle embed links in pandora.clickLinks --- static/js/pandora/utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index e7272f2a..cd0c664b 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -225,7 +225,10 @@ pandora.clearListIconCache = function(list) { } pandora.clickLink = function(e) { - if ( + var match = e.target.id.match(/^embed(\d+)$/) + if (match) { + pandora.$ui.textPanel.selectEmbed(parseInt(match[1])); + } else if ( e.target.hostname == document.location.hostname && !Ox.startsWith(e.target.pathname, '/static') ) {