Commit bfb80381 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'download_thabloid' into 'master'

Set download attribute on Thabloid download links

See merge request !1138
parents 12f0b3bc 78f47c75
......@@ -19,7 +19,12 @@ $(function () {
afterShow: function (instance, current) {
$(instance.$refs.container)
.find("[data-fancybox-download]")
.attr("href", downloadLink);
.attr(
{
"href": downloadLink,
"download": '',
}
);
}
});
});
......
......@@ -19,7 +19,8 @@ def thabloid_card(year, thabloid):
'<a href="{}" class="btn btn-secondary d-inline-flex open mr-1">'
'<i class="fas fa-book-open"></i>'
'</a>'
'<a href="{}" class="btn btn-secondary d-inline-flex download ml-1">'
'<a href="{}" download '
'class="btn btn-secondary d-inline-flex download ml-1">'
'<i class="fas fa-download"></i>'
'</a>'
'</div>'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment