diff --git a/setup/tools/filegen/templates/power.js.in b/setup/tools/filegen/templates/power.js.in index 142d695f..3a8b4248 100644 --- a/setup/tools/filegen/templates/power.js.in +++ b/setup/tools/filegen/templates/power.js.in @@ -384,7 +384,8 @@ if (typeof $WowheadPower == "undefined") { if (aowow_tooltips.iconizelinks && (type == TYPE_ITEM || type == TYPE_ACHIEVEMENT || type == TYPE_SPELL) && data.icon) { // t.children[0].style.marginLeft = "18px"; t.className += " icontinyl"; - t.style.paddingLeft = "18px !important"; + // t.style.paddingLeft = "18px !important"; + t.setAttribute("style", t.getAttribute("style") + "; padding-left:18px !important;"); t.style.verticalAlign = "center"; // t.style.background = "url(" + (document.location.protocol != "https:" ? "http:": document.location.protocol) + "//wowimg.zamimg.com/images/wow/icons/tiny/" + data.icon.toLocaleLowerCase() + ".gif) left center no-repeat" t.style.background = "url(" + g_staticUrl + "/images/wow/icons/tiny/" + data.icon.toLocaleLowerCase() + ".gif) left center no-repeat" diff --git a/static/js/TalentCalc.js b/static/js/TalentCalc.js index 7d9a028e..3dfa1dce 100644 --- a/static/js/TalentCalc.js +++ b/static/js/TalentCalc.js @@ -604,11 +604,14 @@ function TalentCalc() { buffer += '
'; // custom: deploy old armory-string - buffer += '?cid=' + _currentClass + '&tal=' + $WowheadTalentCalculator.getBlizzBuild() + ''; - buffer += ''; + if ($WowheadTalentCalculator !== undefined) { + buffer += '
?cid=' + _currentClass + '&tal=' + $WowheadTalentCalculator.getBlizzBuild() + ''; + buffer += ''; + } // custom end + for (i = 0; i < _nTrees; ++i) { buffer += '
';