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

This commit is contained in:
Ad Schellevis 2016-01-31 14:50:03 +01:00
parent 2c68fd3fac
commit 8034446fb0

View File

@ -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() {