Skip to content

Commit 9f45f37

Browse files
committed
Added events handler for spectrum import button
1 parent 7095028 commit 9f45f37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,6 +1736,11 @@ function BlackboxLogViewer() {
17361736
e.preventDefault();
17371737
});
17381738

1739+
$("#btn-spectrum-import").change(function (e) {
1740+
graph.getAnalyser().importSpectrumFromCSV(e.target.files);
1741+
e.preventDefault();
1742+
e.target.value = "";
1743+
});
17391744
$(".btn-gpx-export").click(function (e) {
17401745
setGraphState(GRAPH_STATE_PAUSED);
17411746
exportGpx();

0 commit comments

Comments
 (0)