mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- fixed creature-tooltips not being displayed when linked via rel-parameter
remember to regenerate power.js (?build=power)
This commit is contained in:
@@ -206,7 +206,7 @@ if (typeof $WowheadPower == "undefined") {
|
|||||||
return;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -630,9 +630,12 @@ var PageTemplate = new function()
|
|||||||
locale.description,
|
locale.description,
|
||||||
g_host + '/?locale=' + locale.id, // sarjuuk: edited for unsupported subdomains # linkBefore + locale.domain + linkAfter
|
g_host + '/?locale=' + locale.id, // sarjuuk: edited for unsupported subdomains # linkBefore + locale.domain + linkAfter
|
||||||
null, // more custom
|
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)
|
if(locale.id == localeId)
|
||||||
{
|
{
|
||||||
menuItem.checked = true;
|
menuItem.checked = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user