Commit 85630abc authored by Ad Schellevis's avatar Ad Schellevis

(captive portal) fix multiple voucher generation, closes...

(captive portal) fix multiple voucher generation, closes https://github.com/opnsense/core/issues/728
parent d9ac9c02
......@@ -195,6 +195,10 @@ POSSIBILITY OF SUCH DAMAGE.
});
// generate download link and send data to the client
if ($('#downloadFile').length) {
// remove previous link
$('#downloadFile').remove();
}
$('<a></a>')
.attr('id','downloadFile')
.attr('href','data:text/csv;charset=utf8,' + encodeURIComponent(output_data))
......
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