diff --git a/src/download2.jst b/src/download2.jst index 461d74724705a068eea9500d5dad1b116840c4d5_c3JjL2Rvd25sb2FkMi5qc3Q=..f43cf008a42fe7729adb001045e41f45a467dddc_c3JjL2Rvd25sb2FkMi5qc3Q= 100644 --- a/src/download2.jst +++ b/src/download2.jst @@ -78,8 +78,9 @@ // Update href, title and other attributes of download link. var link = document.getElementById("download_link"); link.href = url.href; - link.title = url.title.replace("%platform", platform.label) - .replace("%language", language.label); + link.title = link.getAttribute("data-title") + .replace("%platform", platform.label) + .replace("%language", language.label); link.setAttribute("data-platform", platform.id); link.setAttribute("data-language", language.id); document.getElementById("download_icon").className = url.className;