Skip to content

Commit

Permalink
fixed issue where single quote was breaking the diagram options dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
regulator95 committed Feb 19, 2016
1 parent 8397adb commit cd5c233
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/new_diagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,10 @@ function createDiagramDialog() {
if ($.inArray(thename, allnames) == -1) {
allnames.push(thename);
if (tableOptions.selectedDisease==dcode) {
array.push("<option id=" + disname + " value='" + dcode + "' selected>" + thename.replace("diseases:","") + "</option>")
array.push("<option id=" + '"' + disname + '"' + " value=" + '"' + dcode + '"' + " selected>" + thename.replace("diseases:","") + "</option>")
}
else {
array.push("<option id=" + disname + " value='" + dcode + "'>" + thename.replace("diseases:","") + "</option>")
array.push("<option id=" + '"' + disname + '"' + " value=" + '"' + dcode + '"' + ">" + thename.replace("diseases:","") + "</option>")
}
}
});
Expand Down Expand Up @@ -431,10 +431,10 @@ function createDiagramDialog() {
if ($.inArray(thename, allnames) == -1) {
allnames.push(thename);
if (tableOptions.selectedDisease==dcode) {
array.push("<option id=" + disname + " value='" + dcode + "' selected>" + thename.replace("diseases:","") + "</option>")
array.push("<option id=" + '"' + disname + '"' + " value=" + '"' + dcode + '"' + " selected>" + thename.replace("diseases:","") + "</option>")
}
else {
array.push("<option id=" + disname + " value='" + dcode + "'>" + thename.replace("diseases:","") + "</option>")
array.push("<option id=" + '"' + disname + '"' + " value=" + '"' + dcode + '"' + ">" + thename.replace("diseases:","") + "</option>")
}
}
});
Expand Down

0 comments on commit cd5c233

Please sign in to comment.