Mercurial > hg > digilib
changeset 479:1952462027b6
fixed a JS error when going forward/backward between pages
author | hertzhaft |
---|---|
date | Fri, 04 May 2007 18:59:55 +0200 |
parents | 8bcd94b00c42 |
children | 47a391cfae53 |
files | client/digitallibrary/greyskin/dllib.js |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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) {