Skip to content

Commit

Permalink
#71 Whole Genome Alignment: showing filename under cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
josiahseaman committed Dec 4, 2018
1 parent 018b280 commit 4cf9d08
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions DDV/html_template/nucleotideNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,14 @@ function showNucleotideNumber(event, viewer) {
}
}

var display = information_to_show ? position_info.index_inside_contig : "-";

if(cursor_in_a_title){
display = position_info.contig_name;
document.getElementById("Nucleotide").innerHTML = display;
document.getElementById("Nucleotide").innerHTML = position_info.contig_name;
}else{
document.getElementById("Nucleotide").innerHTML = numberWithCommas(display);
var display_number = information_to_show ? position_info.index_inside_contig : "-";
document.getElementById("Nucleotide").innerHTML = numberWithCommas(display_number);
var display_file = information_to_show ? fasta_sources[position_info.fasta_index] : "Sequence under Cursor";
document.getElementById("FileUnderCursor").innerHTML = display_file;
}
//show sequence fragment
if (sequence_data_viewer_initialized) {
Expand Down Expand Up @@ -371,7 +373,7 @@ function processInitSequenceError() {

function outputTable() {
if (each_layout.length){
$('#outputContainer').append('<table id="output" style="border: 1px solid #000000;"><tr><th>Nucleotide Number</th><td id="Nucleotide">-</td></tr></table> ' +
$('#outputContainer').append('<table id="output" style="border: 1px solid #000000;"><tr><th id="FileUnderCursor">Nucleotide Number</th><td id="Nucleotide">-</td></tr></table> '+
'<div id="getSequenceButton"><br /><a onclick="get_all_sequences()"> Fetch Sequence </a></div>' +
'<div id="base"></div><div id="SequenceFragmentFASTA" style="height:200px;">' +
'<div id="SeqDisplayTarget"></div>' +
Expand Down

0 comments on commit 4cf9d08

Please sign in to comment.