handle embed links in pandora.clickLinks
This commit is contained in:
parent
222954a227
commit
6a0f59acfe
1 changed files with 4 additions and 1 deletions
|
@ -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')
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue