Allow user to specify zoomWrapperTitle in thumbnail gallery#1
Allow user to specify zoomWrapperTitle in thumbnail gallery#1darinaprior wants to merge 1 commit intomrenzidev:masterfrom
Conversation
Check for user-specified zoom wrapper title when swapping the main image with a thumbnail image; Set and show the title accordingly
|
Sorry - I didn't format that sample code correctly. Here it is again... |
|
Thanks Darina, All the best 2012/2/21 Darina Prior <
Ing. Marco Renzi "Some superior minds are unrecognized because there is no standard by which |
Hi mindprojects,
I downloaded your jqZoom today and have been playing around with it as I'm hoping to use it on my website. One piece of functionality that I needed was missing, so I've added it and committed it here in case you want to merge the change. Full details below...
Commit details:
Check for user-specified zoom wrapper title when swapping the main image with a thumbnail image;
Set and show the title accordingly
Full details:
I'm trying out jqZoom with one main zoomable image and a bunch of thumbnails below it.
Here's an example of a test page:
http://rubydemure.com/sandbox/product.php?pid=2
Some of the thumbnails have a title associated with them. However, as I clicked on thumbnails and they were successfully swapped with the main image, the TITLE in the pop-up zoom window was not updated.
I have added a few lines of code to the "core" JS script to check if the user specified a zoomWrapperTitle and if so (and if title is turned on in the main options), it sets the title in the zoom window and shows it.
Here's an example of an element with the title set:
I hope this is helpful - I thought I'd try to contribute something :-)
Kindest regards,
Darina