Fix thumbnail paths with parenthesis in them

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-09-13 00:25:48 -07:00
parent 0cf98b69d0
commit 7a9e05975f

View File

@ -84,7 +84,9 @@
thumbChanged: function(thumbpath, visible) { thumbChanged: function(thumbpath, visible) {
if (visible) { if (visible) {
this.style.backgroundImage = "url(" + encodeURI(thumbpath).replace(/'/g, "\\'") + ")"; this.style.backgroundImage = "url(" +
encodeURI(thumbpath).replace(/'/g, "\\'").replace(/([\(\)])/g, "\\$1") +
")";
} else { } else {
this.style.backgroundImage = ""; this.style.backgroundImage = "";
} }