comparison client/digitallibrary/modules/pagesTotal.js @ 43:e918bd61084d

opera support done, bugfixes
author luginbue
date Tue, 21 May 2002 02:29:41 +0200
parents 904f2b2f0cf5
children 81f5e75718ac
comparison
equal deleted inserted replaced
42:57874b52c2fc 43:e918bd61084d
59 * overriding 'page' in navigation 59 * overriding 'page' in navigation
60 */ 60 */
61 function page(keepArea) { 61 function page(keepArea) {
62 62
63 do { 63 do {
64 page = prompt("Goto Page (1 - " + att[9] + "):", 1); 64 var page = prompt("Goto Page (1 - " + att[9] + "):", 1);
65 } while (!isNaN(att[9]) && (page != null) && ((page < 1) || (page > parent.numPages))); 65
66 } while ((page != null) && ((isNaN(page)) || (page < 1) || (page > att[9])));
66 67
67 if (page != null && page != att[1]) { 68 if ((page != null) && (page != att[1])) {
68 att[1] = page; 69 att[1] = page;
69 loadPicture(0, keepArea); 70 loadPicture(0, keepArea);
70 } 71 }
71 } 72 }
72 73