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

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

(captive portal) fix multiple voucher generation, closes https://github.com/opnsense/core/issues/728

(cherry picked from commit 85630abc)
parent 4007ceef
......@@ -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