Skip to content

Commit

Permalink
Use real button
Browse files Browse the repository at this point in the history
  • Loading branch information
mooreryan committed Mar 17, 2019
1 parent ce1a8aa commit 8f10a92
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ thing.pdf
manuscript

app/assets/javascripts/silly.js

old_vendor_stuff
32 changes: 16 additions & 16 deletions app/assets/javascripts/pd.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,21 +463,21 @@ global.pd.fn.main = function () {
};

// For easier testing, this lets you just click submit and get some test data.
submit_button.addEventListener("click", function () {
// global.pd.fn.handle_data(silly.tree, silly.name_graph);
global.pd.fn.handle_data(silly.weird2, silly.weird2_groups);
});

// submit_button.addEventListener("click", function pd_submit_handler() {
// var tree_file = tree_uploader.files[0];
//
// if (tree_file) {
// tree_reader.readAsText(tree_file);
// }
// else {
// alert("Don't forget a tree file!");
// }
// submit_button.addEventListener("click", function () {
// global.pd.fn.handle_data(silly.tree, silly.name_graph);
// // global.pd.fn.handle_data(silly.weird2, silly.weird2_groups);
// });

submit_button.addEventListener("click", function pd_submit_handler() {
var tree_file = tree_uploader.files[0];

if (tree_file) {
tree_reader.readAsText(tree_file);
}
else {
alert("Don't forget a tree file!");
}
});
};

/**
Expand Down Expand Up @@ -557,7 +557,7 @@ global.pd.fn.handle_data = function (newick_string, group_string) {
"<th>Pair Dist Mean</th>" +
"<th>Dispersion</th>" +
"<th>Disp P Value</th>" +
// "<th>TBL P Value</th>" +
// "<th>TBL P Value</th>" +
"</tr>"
);

Expand Down Expand Up @@ -770,7 +770,7 @@ global.pd.fn.make_table_row_data = function (group, stats, pvals) {
mean,
disp,
pval_disp,
// pval_tbl
// pval_tbl
];
};

Expand Down

0 comments on commit 8f10a92

Please sign in to comment.