changeset 448:e96757237406

fixed problem with next/prev page button in oldskin (basically my bad for not properly adapting the new dllib.js)
author robcast
date Mon, 16 Jan 2006 20:36:32 +0100
parents 92e49afaea90
children e01e9112adc3
files client/digitallibrary/oldskin/dlMenu.html
diffstat 1 files changed, 31 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 
 <div id="menu3" class="menu" style="top:430; left:1; width:84; height:33; clip:rect(0,84,33,0)"></div>
  <div id="menu31" class="item3" style="top:432"><center><a href="#" class="text" onclick="changeMark(31); hideMenu(); changeHelp(); return false;" onmouseover="overItem(31)" onmouseout="awayItem(31)"><img id="mark31" src="buttons/nomark.gif" border="0">Contexthelp</a></center></div>
- <div id="menu32" class="item3" style="top:447"><center><a href="#" class="text" onclick="changeMark(32); keepArea = (keepArea == 1) ? 2 : 1; return false;" onmouseover="overItem(32)" onmouseout="awayItem(32)"><img id="mark32" src="buttons/mark.gif" border="0">Keep&nbsp;area</a></center></div>
- <div id="logo" class="logo">
+ <div id="menu32" class="item3" style="top:447"><center><a href="#" class="text" onclick="changeMark(32); keepArea = (keepArea == 47) ? 35 : 47; return false;" onmouseover="overItem(32)" onmouseout="awayItem(32)"><img id="mark32" src="buttons/nomark.gif" border="0">Keep&nbsp;area</a></center></div>
+<!-- <div id="logo" class="logo">
  	<a href="http://digilib.berlios.de" target="_blank" >
  		<img border="0" src="../img/digilib-logo-text1.png" title="digilib"></img>
 	</a>
- </div>
+ </div> -->
 
 <script language="Javascript">
 // initial background color of the menues (has to be done like this,