# HG changeset patch # User hertzhaft # Date 1178297995 -7200 # Node ID 2b72e97ec9dad520291a3e019085cee36cc275ae # Parent f0fb0d7815486762a0266c8b49b3e458f2174fb2 fixed a JS error when going forward/backward between pages diff -r f0fb0d781548 -r 2b72e97ec9da client/digitallibrary/greyskin/dllib.js --- 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) {