Mercurial > hg > digilib-old
diff client/digitallibrary/greyskin/dllib.js @ 483:2b72e97ec9da
fixed a JS error when going forward/backward between pages
author | hertzhaft |
---|---|
date | Fri, 04 May 2007 18:59:55 +0200 |
parents | 9c16290e6f44 |
children | 351c5924b7a6 |
line wrap: on
line diff
--- a/client/digitallibrary/greyskin/dllib.js Fri May 04 18:56:51 2007 +0200 +++ b/client/digitallibrary/greyskin/dllib.js Fri May 04 18:59:55 2007 +0200 @@ -337,6 +337,8 @@ // this is a local callback function that can use the current scope function onImgLoad() { + if (! digilib) + return; // make sure the image is loaded so we know its size /* this test seems to have problems sometimes :-( if (defined(digilib.scalerImg.complete) && !digilib.scalerImg.complete) {