# HG changeset patch # User robcast # Date 1137440192 -3600 # Node ID e96757237406879fd1803e000ff3e7e60fda91a1 # Parent 92e49afaea90770866b3a320e39c846c1213600d fixed problem with next/prev page button in oldskin (basically my bad for not properly adapting the new dllib.js) diff -r 92e49afaea90 -r e96757237406 client/digitallibrary/oldskin/dlMenu.html --- a/client/digitallibrary/oldskin/dlMenu.html Mon Jan 16 20:36:29 2006 +0100 +++ b/client/digitallibrary/oldskin/dlMenu.html Mon Jan 16 20:36:32 2006 +0100 @@ -28,33 +28,32 @@ var pt = parseInt(parent.mainFrame.getParameter("pt")); if ( details == null ) { - details = 1; + details = 35; // fn, pn, ws, mo + pt } if ( page && page.indexOf('-') == 0 ) { - if ( pn > 1 ) { - page = Math.max(pn - parseInt(page.slice(1)), 1); - parent.mainFrame.setParameter("pn", page); - display(details); - } else { - alert("You are already on the first page!"); - } - + if ( pn > 1 ) { + page = Math.max(pn - parseInt(page.slice(1)), 1); + parent.mainFrame.setParameter("pn", page); + display(details); + } else { + alert("You are already on the first page!"); + } } else if ( page && page.indexOf('+') == 0 ) { - if ( pn < pt ) { - page = Math.min(pn + parseInt(page.slice(1)), pt); - parent.mainFrame.setParameter("pn", page); - display(details); - } else { - alert("You are already on the last page!"); - } + if ( pn < pt ) { + page = Math.min(pn + parseInt(page.slice(1)), pt); + parent.mainFrame.setParameter("pn", page); + display(details); + } else { + alert("You are already on the last page!"); + } } else if ( page && page == parseInt(page) ) { - if ( (page > 0) && (page <= pt) ) { - parent.mainFrame.setParameter("pn", page); - display(details); - } else { - alert ("Illegal page number (should be 1 - " + pt + ")!"); - } + if ( (page > 0) && (page <= pt) ) { + parent.mainFrame.setParameter("pn", page); + display(details); + } else { + alert ("Illegal page number (should be 1 - " + pt + ")!"); + } } } @@ -63,7 +62,11 @@ */ function display(detail) { - parent.pageFrame.show(); + if (parent.pageFrame.show) { + parent.pageFrame.show(); + } else { + parent.pageFrame.location.reload(); + } parent.mainFrame.display(detail); } @@ -103,8 +106,8 @@ var showHelp = false; // variable to tell if while changing to another page it should keep the area -// change in the menuitem its original mark (1 = false, 2 = true) -var keepArea = 2; +// change in the menuitem its original mark +var keepArea = 35; // fn, pn, ws, mo + pt // variable that store the texts for contexthelp @@ -155,12 +158,12 @@ - -