Skip to content

Commit

Permalink
Fix download button.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Wedell committed Apr 24, 2019
1 parent 1792406 commit 0ac8a16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/search_result.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h2>Peak Search</h2>
</form>

<script>
$("#submit").click(function () {
$("#submit").click(() => {

// Clean up the shifts
let shifts = $('#rs').val().split(/[ \t,\n\r;]+/);
Expand Down Expand Up @@ -149,7 +149,7 @@ <h2>Peak Search</h2>
}

// This must be a hyperlink
$("#export").click(() => {
$("#export").click(function(event) {
const outputFile = 'peak_search_results.csv';
exportTableToCSV.apply(this, [$('#results_table'), outputFile]);
});
Expand Down

0 comments on commit 0ac8a16

Please sign in to comment.