changeset 483:2b72e97ec9da

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