Skip to content

Commit

Permalink
Fix for Function Maps with spaces in the name
Browse files Browse the repository at this point in the history
  • Loading branch information
flash62au committed Mar 3, 2024
1 parent ed02303 commit a2addba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Version 1.3.14
- Fix for Function Maps with spaces in the name

# Version 1.3.13
- attempt to reduce caching

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<link rel="manifest" href="manifest.json">
<script>
var version = "1.3.13";
var version = "1.3.14";
</script>

<link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon">
Expand Down
7 changes: 5 additions & 2 deletions js/exwebthrottle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,9 @@ $(document).ready(function(){
})

$(document).on("click", ".map-name", function () {
loadMapData($(this).attr("map-val"));
const ename = $(this).attr("map-val");
const name = unescape(ename);
loadMapData(name);
$("li.map-name").removeClass("active");
$(this).addClass("active");
});
Expand Down Expand Up @@ -1060,7 +1062,8 @@ function setFunctionMaps() {
$("#function-mappings").empty();
maps.forEach(map => {
const name = map.mname
$("#function-mappings").append(`<li class='map-name' map-val=${name}>${name}</li>`);
const ename = escape(name);
$("#function-mappings").append(`<li class='map-name' map-val=${ename}>${name}</li>`);
})
}

Expand Down

0 comments on commit a2addba

Please sign in to comment.