forked from 0x2620/pandora
honor _blank
This commit is contained in:
parent
ac8c01ee98
commit
f157ebf2c4
1 changed files with 5 additions and 1 deletions
|
@ -374,9 +374,13 @@ pandora.clickLink = function(e, selectEmbed) {
|
||||||
var match = e.target.id.match(/^embed(\d+)$/);
|
var match = e.target.id.match(/^embed(\d+)$/);
|
||||||
if (match) {
|
if (match) {
|
||||||
(selectEmbed || pandora.$ui.textPanel.selectEmbed)(parseInt(match[1]));
|
(selectEmbed || pandora.$ui.textPanel.selectEmbed)(parseInt(match[1]));
|
||||||
|
} else {
|
||||||
|
if (e.target.target == '_blank') {
|
||||||
|
pandora.openLink(e.target.href);
|
||||||
} else {
|
} else {
|
||||||
pandora.openURL(e.target.href);
|
pandora.openURL(e.target.href);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pandora.createLinks = function($element) {
|
pandora.createLinks = function($element) {
|
||||||
|
|
Loading…
Reference in a new issue