Mercurial > hg > digilib
diff client/digitallibrary/modules/pagesTotal.js @ 40:e918bd61084d
opera support done, bugfixes
author | luginbue |
---|---|
date | Tue, 21 May 2002 02:29:41 +0200 |
parents | 904f2b2f0cf5 |
children | 81f5e75718ac |
line wrap: on
line diff
--- a/client/digitallibrary/modules/pagesTotal.js Tue May 21 02:29:41 2002 +0200 +++ b/client/digitallibrary/modules/pagesTotal.js Tue May 21 02:29:41 2002 +0200 @@ -61,10 +61,11 @@ function page(keepArea) { do { - page = prompt("Goto Page (1 - " + att[9] + "):", 1); - } while (!isNaN(att[9]) && (page != null) && ((page < 1) || (page > parent.numPages))); + var page = prompt("Goto Page (1 - " + att[9] + "):", 1); + + } while ((page != null) && ((isNaN(page)) || (page < 1) || (page > att[9]))); - if (page != null && page != att[1]) { + if ((page != null) && (page != att[1])) { att[1] = page; loadPicture(0, keepArea); }