mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
(captive portal) fix multiple voucher generation, closes https://github.com/opnsense/core/issues/728
This commit is contained in:
parent
d9ac9c023c
commit
85630abc33
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user