Closed GoogleCodeExporter closed 8 years ago
My temporary sollution is to deactivate the thumbnail line. This works for my
situation.
//var thumbnail = thumbnails[i].get('src') || '';
data[src] = {'caption': caption, 'href': href};//, 'thumbnail': thumbnail
Original comment by daiv.mow...@gmail.com
on 2 Dec 2008 at 10:32
Afraid the above temp solution only avoids the error, it leaves thumbnails out
of service regardless of the option
thumbnails true or false.
Original comment by daiv.mow...@gmail.com
on 4 Dec 2008 at 9:09
I have a solution which seams to work. If anyone can confirm the fix, thanx.
I have added a conditional if to the if(!data) zone:
Changed this:
if (!data){
this.options.hu = '';
data = {};
var thumbnails = this.slideshow.getElements(this.classes.get('thumbnails') + ' img');
this.slideshow.getElements(this.classes.get('images') + ' img').each(function(img, i){
var src = img.get('src');
var caption = img.get('alt') || img.get('title') || '';
var href = img.getParent().get('href') || '';
var thumbnail = thumbnails[i].get('src') || '';
data[src] = {'caption': caption, 'href': href, 'thumbnail': thumbnail};
});
}
To:
if (!data){
this.options.hu = '';
data = {};
if (this.options.thumbnails) {
var thumbnails = this.slideshow.getElements(this.classes.get('thumbnails') + ' img');}
this.slideshow.getElements(this.classes.get('images') + ' img').each(function(img, i){
var src = img.get('src');
var caption = img.get('alt') || img.get('title') || '';
var href = img.getParent().get('href') || '';
if (thumbnails) var thumbnail = thumbnails[i].get('src') || '';
data[src] = {'caption': caption, 'href': href, 'thumbnail': thumbnail};
});
}
Original comment by daiv.mow...@gmail.com
on 4 Dec 2008 at 9:29
Original comment by aeron.gl...@gmail.com
on 27 Dec 2008 at 2:39
This has been fixed in SVN. Thanks for your bug report!
Original comment by aeron.gl...@gmail.com
on 17 Jan 2009 at 3:56
Original issue reported on code.google.com by
daiv.mow...@gmail.com
on 2 Dec 2008 at 10:21Attachments: