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

Style attribute manipulation fixes #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marklindhout
Copy link

@marklindhout marklindhout commented Jan 3, 2019

Fixed overwrites of previously-set style properties on DOM objects, like the <body>. This was causing problems if you, for example, had a background-image css property set on the body, and opened a jsOnlyLightBox. Since the lightbox overwrote the entire style property, all other previously set properties were lost. This is now fixed by setting style properties using the style array method: obj.style['background-image'] = 'url(logo.png)';

This pull request contains the changed lightbox.js file, and the compressed and mangled lightbox.min.js too. I used uglify-js -m -c to generate this minified file.

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

Successfully merging this pull request may close these issues.

1 participant