Skip to content

Commit

Permalink
Need to replace all occurrences, not just the first.
Browse files Browse the repository at this point in the history
Fixes #1688
  • Loading branch information
cpinkham committed Dec 3, 2023
1 parent 16f8ea7 commit b5cd8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/fpp.js
Original file line number Diff line number Diff line change
Expand Up @@ -4999,7 +4999,7 @@ function DownloadZip(dir) {
}

function ViewImage(file) {
var url = "api/file/Images/" + encodeURIComponent(file).replace('%2F','/');
var url = "api/file/Images/" + encodeURIComponent(file).replaceAll('%2F','/');
ViewFileImpl(url, file, "<center><a href='" + url + "' target='_blank'><img src='" + url + "' style='display: block; max-width: 700px; max-height: 500px; width: auto; height: auto;'></a><br>Click image to display full size.</center>");
}

Expand Down

0 comments on commit b5cd8a8

Please sign in to comment.