# HG changeset patch # User hertzhaft # Date 1178297995 -7200 # Node ID 1952462027b668a624c3c27e9f961ad61657c72d # Parent 8bcd94b00c42595749c350e8c9eecc1d74f304d3 fixed a JS error when going forward/backward between pages diff -r 8bcd94b00c42 -r 1952462027b6 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) {