Fixing results download in Firefox. Fixes #153

pull/157/head
Jordan Wright 2016-02-15 12:18:21 -06:00
parent 1fe1af2ce9
commit 913f444598
1 changed files with 2 additions and 0 deletions

View File

@ -111,7 +111,9 @@ function exportAsCSV(scope) {
var dlLink = document.createElement('a'); var dlLink = document.createElement('a');
dlLink.href = csvURL; dlLink.href = csvURL;
dlLink.setAttribute('download', scope + '.csv'); dlLink.setAttribute('download', scope + '.csv');
document.body.appendChild(dlLink)
dlLink.click(); dlLink.click();
document.body.removeChild(dlLink)
} }
$("#exportButton").html(exportHTML) $("#exportButton").html(exportHTML)
} }