Commit 4e446d35 authored by Armand Bour's avatar Armand Bour Committed by Mikaël Salson
Browse files

Fix page refreshing when exporting to fasta

parent c6f9c1a7
...@@ -167,10 +167,17 @@ function disableFeatures(disabled) { ...@@ -167,10 +167,17 @@ function disableFeatures(disabled) {
*/ */
function prepareButtons() { function prepareButtons() {
var exportFastaBtn = document.getElementById('btn_exportfasta'); var exportFastaBtn = document.getElementById('btn_exportfasta');
var form = document.getElementById('form_block');
exportFastaBtn.addEventListener('click', function () { exportFastaBtn.addEventListener('click', function () {
model.exportFasta(); model.exportFasta();
}); });
// Prevent submitting form
form.addEventListener('submit', function (e) {
e.preventDefault();
e.stopPropagation();
});
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment