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

This commit is contained in:
Ad Schellevis 2016-02-01 09:48:32 +01:00
parent d9ac9c023c
commit 85630abc33

View File

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