Hi, I was wondering if anyone knew of a way to automatically refresh the "Parent" screen when you close the Lightbox2 lightframe.

Thank you,
Amy

Comments

perceptum’s picture

... if we figure out a way, I'll post it up here tomorrow.

If you found a way, please let us know!

Thanks

tidjean’s picture

Hello,

I am looking for the answer to this question, so if someone have it, please let us know. When i find, i'll give you.

de:moi(tidjean)

tidjean’s picture

hey guys!!! i find how to fix that, in the fonction "end: function(caller) " (start at line 872 from file lightbox.js) you have to insert on line of code, i give you my funtion.

end: function(caller) {
var closeClick = (caller == 'slideshow' ? false : true);
if (Lightbox.isSlideshow && Lightbox.isPaused && !closeClick) {
return;
}
// To prevent double clicks on navigation links.
if (Lightbox.inprogress === true && caller != 'forceClose') {
return;
}
Lightbox.disableKeyboardNav();
$('#lightbox').hide();
$("#overlay").fadeOut();
Lightbox.isPaused = true;
Lightbox.inprogress = false;
// Replaces calls to showSelectBoxes() and showFlash() in original
// lightbox2.
Lightbox.toggleSelectsFlash('visible');
if (Lightbox.isSlideshow) {
for (var i = 0; i < Lightbox.slideIdCount; i++) {
window.clearTimeout(Lightbox.slideIdArray[i]);
}
$('#lightshowPause, #lightshowPlay').hide();
}
else if (Lightbox.isLightframe) {
$('#frameContainer').empty().hide();
window.location.reload();//--------------------this line to insert in your code----------------------------------------------------------- ;)

}
else if (Lightbox.isVideo || Lightbox.isModal) {
$('#modalContainer').hide().html("");
}
},

de:moi(tidjean)

jeremym’s picture

Thanks. This fix works well.