handle embed links in pandora.clickLinks

This commit is contained in:
rolux 2013-02-22 08:41:22 +05:30
parent 222954a227
commit 6a0f59acfe

View file

@ -225,7 +225,10 @@ pandora.clearListIconCache = function(list) {
} }
pandora.clickLink = function(e) { 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 e.target.hostname == document.location.hostname
&& !Ox.startsWith(e.target.pathname, '/static') && !Ox.startsWith(e.target.pathname, '/static')
) { ) {