Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with a filename or path that contains ")" char #33

Open
RickenB opened this issue Mar 17, 2017 · 0 comments
Open

Problem with a filename or path that contains ")" char #33

RickenB opened this issue Mar 17, 2017 · 0 comments

Comments

@RickenB
Copy link

RickenB commented Mar 17, 2017

If the filename or the path contains the ")" character, the image doesn't show because the thumb element have the style attribute as this:
<a href="... " style="background-image: url(http://mydomain.com/path/filenamewith).jpg)" ...

This could be resolved adding the ' delimiter before and after the image path:
<a href="... " style="background-image: url('http://mydomain.com/path/filenamewith).jpg')" ...

So you can modify the row 36 with this:
$(this).parents('.sp-wrap').find('.sp-thumbs').append('<a href="' + large + '" style="background-image:url('' + thumb + '')"'+classes+'>');

Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant