From 438e7b923fa94ae2019e86f6110a0374e9f8016a Mon Sep 17 00:00:00 2001 From: Patrick Tang <36460266+patricksptang@users.noreply.github.com> Date: Sun, 4 Feb 2024 00:24:12 -0800 Subject: [PATCH] Fix the display of maps for multiple strong --- step-web/src/main/webapp/js/backbone/views/view_sidebar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/step-web/src/main/webapp/js/backbone/views/view_sidebar.js b/step-web/src/main/webapp/js/backbone/views/view_sidebar.js index afd3220c3a..1d44973f25 100644 --- a/step-web/src/main/webapp/js/backbone/views/view_sidebar.js +++ b/step-web/src/main/webapp/js/backbone/views/view_sidebar.js @@ -300,7 +300,7 @@ var SidebarView = Backbone.View.extend({ .append(mainWord.stepGloss) .append("' ") .append($(" ").append(" (" + mainWord.strongNumber + ")").addClass("strongNumberTagLine")) - .append('') + .append('') ); }, @@ -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("