Fix More Info bug that reverted text to English
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
+ // Getting the "More info" translation from the first button element
+ var partnerButtons = document.getElementsByClassName("partner-glider-button");
+ var partnerText = partnerButtons[0].innerText;
+
function toggleDescription(partnerId) {
// Before toggling the description, search if there are any descriptions
// already toggled and flip them to the image
partnerContainer.classList.toggle("partner-description-toggled");
}
}
-
toggleElement("partner-image-" + partnerId);
toggleElement("partner-description-" + partnerId);
togglePartnerButton(partnerId);
if (partnerImage.classList.contains("invisible")) {
partnerButton.innerHTML = "Less info";
} else {
- partnerButton.innerHTML = "More info";
+ partnerButton.innerHTML = partnerText;
}
}
</script>
