Skip to content

Commit

Permalink
Correction to final update for 1.7.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
burkmarr committed Jul 5, 2018
1 parent 7e10d3a commit ed2d6dc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions tombio/keyinput.js
Expand Up @@ -455,16 +455,19 @@
} else {
var selectVal = select.val();
}

console.log(selectVal)
var values = [];
tbv.d.oCharacters[character].CharacterStateValues.forEach(function (stateValue, index) {
tbv.oCharacters[character].CharacterStateValues.forEach(function (stateValue, index) {

if (selectVal.indexOf(stateValue) > -1) {
values.push(index);
}
})

tbv.d.oCharacters[character].userInput = values;
tbv.oCharacters[character].userInput = values;
} else {
tbv.d.oCharacters[character].userInput = null;
tbv.oCharacters[character].userInput = null;
}

//Set the tooltip for the character states selected. This has to be done every time
Expand Down

0 comments on commit ed2d6dc

Please sign in to comment.