Commit f0e11c9f authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(captive portal) change voucher download filename to match groupname, original...

(captive portal) change voucher download filename to match groupname, original idea from @DokuKaefer

(cherry picked from commit 8034446f)
parent d52fc47a
......@@ -198,7 +198,7 @@ POSSIBILITY OF SUCH DAMAGE.
$('<a></a>')
.attr('id','downloadFile')
.attr('href','data:text/csv;charset=utf8,' + encodeURIComponent(output_data))
.attr('download','vouchers.csv')
.attr('download',voucher_groupname.toLowerCase() + '.csv')
.appendTo('body');
$('#downloadFile').ready(function() {
......
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