Skip to content

Commit

Permalink
don't show update highlight for genomebrowser mode
Browse files Browse the repository at this point in the history
  • Loading branch information
olga24912 committed Jul 24, 2019
1 parent 14e46f2 commit 7897271
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
7 changes: 6 additions & 1 deletion UI/scripts/handleAlongChromosomes.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,12 @@ function nodePositionChange(cy, posmin, posmax) {

//open vertex
function createNewVerAlongChr(cy, area_size, min_contig_len, isGoodEdge, curNodeSet, openNode) {
cy.on('taphold', 'node', function (evt) {
cy.on('tap', 'node', function (evt) {
if (cy.ignoreTap) {
delete cy.ignoreTap;
return
}

var newNode = new Set();
var v = evt.target.id();
openNode.add(v);
Expand Down
8 changes: 2 additions & 6 deletions UI/scripts/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function add_miss_vertex(connectionList) {
}

function check_miss_vertex(connectionList) {
if (allVertexInCy(connectionList) === false) {
if (allVertexInCy(connectionList) === false && (document.getElementById("select_layout").value === "free_layout")) {
document.getElementById("AlertBoxNotAllVertexPresent").style.visibility = "visible";
} else {
document.getElementById("AlertBoxNotAllVertexPresent").style.visibility = "hidden";
Expand Down Expand Up @@ -474,11 +474,7 @@ function highlightAutocompleteSetUp() {
}

function highlightOnTap(cy) {
cy.on('tap', 'node', function (evt) {
if (cy.ignoreTap) {
delete cy.ignoreTap;
return
}
cy.on('taphold', 'node', function (evt) {
var v = evt.target.id();
var highlight_text = document.getElementById('highlight_elements');
highlight_text.value += " " + v;
Expand Down
7 changes: 6 additions & 1 deletion UI/scripts/openVertex.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ function getYforNewVert(v, u, evt, isGoodEdge) {
}

function createAddNewNode(cy, curNodeSet) {
cy.on('taphold', 'node', function (evt) {
cy.on('tap', 'node', function (evt) {
if (cy.ignoreTap) {
delete cy.ignoreTap;
return
}

var v = evt.target.id();
var needAddVert = [];
var needAddEdge = [];
Expand Down

0 comments on commit 7897271

Please sign in to comment.