diff client/digitallibrary/greyskin/dllib.js @ 479:1952462027b6

fixed a JS error when going forward/backward between pages
author hertzhaft
date Fri, 04 May 2007 18:59:55 +0200
parents 6b9f375f5073
children 7ef10557a819
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) {