Please help.
I am using highslide gallery and I need to refresh the page after completing each slideshow.(Images are dynamically added to the image folder) Currently I have added the page refresh code at highslide-full.js which is highlighted below.But it skips the last image. The issue is in Interner explorer only. Please help me to solve this.
Kindly help.
- Code: Select all
checkFirstAndLast: function() {
if (this.repeat || !this.controls) return;
var exp = hs.expanders[this.expKey],
cur = exp.getAnchorIndex(),
re = /disabled$/;
if (cur == 0)
{
this.disable('previous');
}
else if (re.test(this.btn.previous.getElementsByTagName('a')[0].className))
this.enable('previous');
if (cur == hs.anchors.groups[exp.slideshowGroup || 'none'].length) {
this.disable('next');
this.disable('play');
location.reload(true); // Page refresh after completion of each loop
}
else if (re.test(this.btn.next.getElementsByTagName('a')[0].className)) {
this.enable('next');
this.enable('play');
}
},