|
|
Oke some guys asked for a "reload-option" of the parent page (from where the shadowbox was called). Because when you make changes in (for example) a database you have to reload the page which contains the data that you've refreshed with the shadowbox.
It's pritty simple to do that:
shadowbox.js:
after: autoplayMovies: true, // automatically play movies
add: relOnClose: false, // Reload the parent page after closing shadowbox
after: onClose: function(){
toggleVisible();
toggleTroubleElements(true);
add: if(S.options.relOnClose) {
location.reload();
}
That's it... if you like now that after close of the shadowbox your parent-page has to reload just set in the rel-atribute of your link the parameter on "true".
example:
href="page.php" rel="shadowbox;width=500;height=500;options={relOnClose:true}">link
|