Skip to content

Commit

Permalink
Fixed bug with special characters in imageId
Browse files Browse the repository at this point in the history
  • Loading branch information
steentje34 committed Mar 1, 2023
1 parent 08dd645 commit 5983385
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imagemapfunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ imagemapfunctions.registerImageMap = function (imageId, mapId, originalRadioButt
switch ('RENDERMODE') {
case 'afterRender':
JSMONAME.afterRender(function () {
$('#' + imageId + 'canvas').remove();
if (document.getElementById(imageId+'canvas') != null) document.getElementById(imageId+'canvas').remove();
aug.populateAreas(imagemapfunctions.getCheckedElements(radiobuttonName));
aug.renderMap();
});
break;
case 'onLangChanged':
REDCap.MultiLanguage.onLangChanged(function () {
$('#' + imageId + 'canvas').remove();
if (document.getElementById(imageId+'canvas') != null) document.getElementById(imageId+'canvas').remove();
aug.populateAreas(imagemapfunctions.getCheckedElements(radiobuttonName));
aug.renderMap();
});
Expand Down

0 comments on commit 5983385

Please sign in to comment.