BipadTaranMahato / slideshow

Automatically exported from code.google.com/p/slideshow
0 stars 0 forks source link

img alt attribute not updated #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set a default image for slideshow with alt attribute for img tag
2. Run the show

The alt attribute of img tag should be updated with caption data for each
image like the title attribute of parent "a" tag.

Original issue reported on code.google.com by zoullo...@gmail.com on 3 Feb 2009 at 4:09

GoogleCodeExporter commented 9 years ago
Hi,

Could be fixed by changing slideshow.js file near line 392 like this :

if (this.data.captions[this.slide]) {
                anchor.set('title', this.data.captions[this.slide].replace(/</g,
'<').replace(/>/g, '>').replace(/"/g, "'"));
    this.image.set('alt', this.data.captions[this.slide].replace(/</g,
'<').replace(/>/g, '>').replace(/"/g, "'"));
            } else {
                anchor.erase('title');
    this.image.erase('alt');
   }

Original comment by zoullo...@gmail.com on 3 Feb 2009 at 4:21

GoogleCodeExporter commented 9 years ago
Fixed in SVN - will create new download today. Thanks!

Original comment by aeron.gl...@gmail.com on 15 Mar 2009 at 9:14