Mercurial > hg > digilib-old
comparison client/digitallibrary/greyskin/dllib.js @ 483:2b72e97ec9da
fixed a JS error when going forward/backward between pages
author | hertzhaft |
---|---|
date | Fri, 04 May 2007 18:59:55 +0200 |
parents | 9c16290e6f44 |
children | 351c5924b7a6 |
comparison
equal
deleted
inserted
replaced
482:f0fb0d781548 | 483:2b72e97ec9da |
---|---|
335 | 335 |
336 var digilib = this; | 336 var digilib = this; |
337 // this is a local callback function that can use the current scope | 337 // this is a local callback function that can use the current scope |
338 | 338 |
339 function onImgLoad() { | 339 function onImgLoad() { |
340 if (! digilib) | |
341 return; | |
340 // make sure the image is loaded so we know its size | 342 // make sure the image is loaded so we know its size |
341 /* this test seems to have problems sometimes :-( | 343 /* this test seems to have problems sometimes :-( |
342 if (defined(digilib.scalerImg.complete) && !digilib.scalerImg.complete) { | 344 if (defined(digilib.scalerImg.complete) && !digilib.scalerImg.complete) { |
343 alert("ERROR: the image seems not to be complete in onImgLoad!?"); | 345 alert("ERROR: the image seems not to be complete in onImgLoad!?"); |
344 } */ | 346 } */ |