Duplicate name section needs to strip chars from filename illegal to use in HTML id

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-10-06 16:15:57 -07:00
parent f48ef940dd
commit d6cd758c9b

View File

@ -1097,7 +1097,7 @@
} }
if (this.mode == "duplicates") { if (this.mode == "duplicates") {
var name = photo.filename.replace(/\. '\"/g, "_"), var name = photo.filename.replace(/[. '"]/g, "_"),
nameBlock = this.root.querySelector("#name-" + name), thumbnails; nameBlock = this.root.querySelector("#name-" + name), thumbnails;
if (!nameBlock) { if (!nameBlock) {
nameBlock = document.createElement("div"); nameBlock = document.createElement("div");