- fixed text overlaping with icon in Firefox for auticonized tooltips

- fixed PetCalc export option
This commit is contained in:
Sarjuuk
2015-06-06 14:35:38 +02:00
parent 30b0b413e6
commit 2e327b7cc0
2 changed files with 8 additions and 4 deletions

View File

@@ -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"

View File

@@ -604,11 +604,14 @@ function TalentCalc() {
buffer += '<p></p>';
// custom: deploy old armory-string
buffer += '<h3>' + LANG.tc_export + LANG.colon + '</h3>';
buffer += '<blockquote style="font-family: \'Courier New\';">?cid=' + _currentClass + '&tal=' + $WowheadTalentCalculator.getBlizzBuild() + '</blockquote>';
buffer += '<p></p>';
if ($WowheadTalentCalculator !== undefined) {
buffer += '<h3>' + LANG.tc_export + LANG.colon + '</h3>';
buffer += '<blockquote style="font-family: \'Courier New\';">?cid=' + _currentClass + '&tal=' + $WowheadTalentCalculator.getBlizzBuild() + '</blockquote>';
buffer += '<p></p>';
}
// custom end
for (i = 0; i < _nTrees; ++i) {
buffer += '<h3>' + c[i].n + ' (' + c[i].k + ' ' + LANG[c[i].k == 1 ? 'tc_point': 'tc_points'] + ')</h3>';
buffer += '<blockquote>';