Skip to content
Snippets Groups Projects
Commit f43cf008 authored by Ian Neal's avatar Ian Neal
Browse files

Bug 1566358 - Update releases page to include 64-bit Windows and Linux...

Bug 1566358 - Update releases page to include 64-bit Windows and Linux platforms - update JS to use data-title attribute for download titles r=me
parent 461d7472
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment