From 8034446fb072fcc749a31ab361149e27aff94ced Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 31 Jan 2016 14:50:03 +0100 Subject: [PATCH] (captive portal) change voucher download filename to match groupname, original idea from @DokuKaefer --- src/opnsense/mvc/app/views/OPNsense/CaptivePortal/vouchers.volt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/mvc/app/views/OPNsense/CaptivePortal/vouchers.volt b/src/opnsense/mvc/app/views/OPNsense/CaptivePortal/vouchers.volt index 411a96487..a5bd78d86 100644 --- a/src/opnsense/mvc/app/views/OPNsense/CaptivePortal/vouchers.volt +++ b/src/opnsense/mvc/app/views/OPNsense/CaptivePortal/vouchers.volt @@ -198,7 +198,7 @@ POSSIBILITY OF SUCH DAMAGE. $('') .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() {