- fixed creature-tooltips not being displayed when linked via rel-parameter

remember to regenerate power.js (?build=power)
This commit is contained in:
Sarjuuk
2014-09-19 20:37:12 +02:00
parent 49ecdb9a31
commit 56d85ee599
2 changed files with 5 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ if (typeof $WowheadPower == "undefined") {
return;
}
if (t.rel && t.rel.indexOf("np") != -1) {
if (t.rel && t.rel.indexOf("np") != -1 && t.rel.indexOf("np") != t.rel.indexOf("npc=")) {
return;
}

View File

@@ -630,9 +630,12 @@ var PageTemplate = new function()
locale.description,
g_host + '/?locale=' + locale.id, // sarjuuk: edited for unsupported subdomains # linkBefore + locale.domain + linkAfter
null, // more custom
{rel: location.href + " domain=" + locale.domain} // also custom
null // also custom
];
if (typeof g_pageInfo != 'undefined' && g_pageInfo.type && g_types[g_pageInfo.type])
menuItem[4] = {rel: g_types[g_pageInfo.type] + '=' + g_pageInfo.typeId + " domain=" + locale.domain};
if(locale.id == localeId)
{
menuItem.checked = true;