Skip to content

Commit

Permalink
Fix the display of maps for multiple strong
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksptang committed Feb 4, 2024
1 parent 87418c7 commit 438e7b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions step-web/src/main/webapp/js/backbone/views/view_sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ var SidebarView = Backbone.View.extend({
.append(mainWord.stepGloss)
.append("' ")
.append($(" <span title='" + __s.strong_number + "'>").append(" (" + mainWord.strongNumber + ")").addClass("strongNumberTagLine"))
.append('<span id="possibleMap"></span>')
.append('<span id="possibleMap' + mainWord.strongNum + '"></span>')
);
},

Expand Down Expand Up @@ -604,11 +604,11 @@ var SidebarView = Backbone.View.extend({

_lookUpGeoInfo: function(mainWord, bookName, coordinates) {
bookName = bookName.substring(0, bookName.length - 1);
var possibleMapElement = $("#possibleMap");
var possibleMapElement = $("#possibleMap" + mainWord.strongNum);
if (possibleMapElement.length == 0) {
console.log ("cannot find possible Map ID in html");
// add a sleep here
possibleMapElement = $("#possibleMap");
possibleMapElement = $("#possibleMap" + mainWord.strongNum);
}
possibleMapElement.empty().html("<a href='/html/multimap.html?coord=" + coordinates +
"&strong=" + mainWord.strongNumber + "&gloss=" + mainWord.stepGloss +
Expand Down

0 comments on commit 438e7b9

Please sign in to comment.