Skip to content

Commit

Permalink
Fixed issue with selected images not selected by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Orban committed Aug 7, 2018
1 parent f01fa6d commit 5bfe902
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,10 @@ function onMouseOverChange(i, event) {

if (i != null) {
for (var f = 0; f < displays.length; f++) {
if (db.info[f].type == "line") {
if (db.info[f].type === "line") {
displays[f].setHighlight([selectedData].concat([i].concat(alwaysHighlighted)));
}
else if (db.info[f].type == "image") {
else if (db.info[f].type === "image") {
var images = getImages(i, db.info[f]);
displays[f].setLeftImage(images[0]);
displays[f].setRightImage(images[1]);
Expand All @@ -431,11 +431,11 @@ function onMouseOverChange(i, event) {
}
else {//i is null when mousing over a blank area
for (var f = 0; f < displays.length; f++) {
if (db.info[f].type == "line") {
if (db.info[f].type === "line") {
displays[f].setHighlight([selectedData].concat(alwaysHighlighted));
}
else if (db.info[f].type == "image" && selectedData != null) {
var images = getImages(i, db.info[f]);
else if (db.info[f].type === "image" && selectedData != null) {
var images = getImages(selectedData, db.info[f]);
displays[f].setLeftImage(images[0]);
displays[f].setRightImage(images[1]);
}
Expand Down

0 comments on commit 5bfe902

Please sign in to comment.