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

ezPlus with multiple images #120

Closed
volkerdobler opened this issue Jul 24, 2019 · 5 comments
Closed

ezPlus with multiple images #120

volkerdobler opened this issue Jul 24, 2019 · 5 comments

Comments

@volkerdobler
Copy link

volkerdobler commented Jul 24, 2019

I have problems using ezPlus with multiple images on my page.
I have nailed down the problem to line 320 in (current) version 1.2.4

"$('.' + self.options.container).remove();

If this line exist, all (previous added) classes are removed and only the last image-container stays.
Why is this line in the script?

If I run the script with this line, and I have 2+ pictures I would like to zoom (e.g. $('#pic1').ezPlus(); $('#pic2').ezPlus();), the container for the first pic (#pic1) is removed with the second image and therefore I am not able to zoom the image #pic1.

To run both images I have to add at least the "ZoomContainer" option with different values - which is not what I expected (e.g. $('#pic1').ezPlus({ZoomContainer:a}); $('#pic2').ezPlus({ZoomContainer:b}); will work). But this is complicated and I would like to run multiple images with the standard settings (if possible :-) )

Can I (safety) remove this line? What is the purpose of this line?

@vaajnur
Copy link

vaajnur commented Nov 22, 2019

same problem on multiple images. Work only last image.

@vaajnur
Copy link

vaajnur commented Nov 22, 2019

after comment this
"$('.' + self.options.container).remove();
all images are work!
volkerdobler, thank you!

@mgcastelberg
Copy link

Excelent info my friend

@alexandregyn
Copy link

alexandregyn commented Jul 1, 2020

after comment this
"$('.' + self.options.container).remove();
all images are work!
volkerdobler, thank you!

Thanks very good friend that your information

@igorlino
Copy link
Owner

igorlino commented Jul 7, 2020

thanks @volkerdobler for the fix :)

@igorlino igorlino closed this as completed Jul 7, 2020
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

5 participants