X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=blobdiff_plain;f=include%2Fshow.js;h=52452329e72abf6892c54603a2bdc5943615ee45;hp=4bcd28ea0c758aefe48159e620ca23ae239a465f;hb=68342a9356f27f9d843c4ceafdf8a42a0e7b17bd;hpb=8885ed7401ea77ca4c4ae1927c78df7891d61f63 diff --git a/include/show.js b/include/show.js index 4bcd28e..5245232 100644 --- a/include/show.js +++ b/include/show.js @@ -62,8 +62,10 @@ var Show = new Class({ }; this.updatecoords(); this.prevdisplay = new Element('img'). + setStyle('opacity', 0). injectInside(this.container.container); this.ondisplay = new Element('img'). + setStyle('opacity', 0). injectInside(this.container.container); this.loadingdiv = new Element('div'). addClass('loading').setStyles({ @@ -137,6 +139,7 @@ var Show = new Class({ this.options.cbStart(); this.isplaying = play; this.controls.running(this.isplaying); + this.updatecoords(); this.show(id); return false; /* to make it usable from href links */ },