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

Description is shown as null if data-description is empty #8

Open
ghost opened this issue Apr 20, 2012 · 0 comments
Open

Description is shown as null if data-description is empty #8

ghost opened this issue Apr 20, 2012 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 20, 2012

As it says - in the info bar there is text "null" if image data-description is empty.
Personally I have very little experience with js, but I was able to find a simple solution - in custom image object function change
description: img.data('description')
to
description: img.data('description') || ''
(maybe same thing should be done with titles?)
thanks for a nice gallery!

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

0 participants