changeset 48:81f5e75718ac

bugfixes and new module
author luginbue
date Sun, 07 Jul 2002 18:03:54 +0200
parents 9a3fc958fb43
children 67bbba76f34a
files client/digitallibrary/modules/pagesTotal.js
diffstat 1 files changed, 9 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/client/digitallibrary/modules/pagesTotal.js	Sun Jul 07 18:03:54 2002 +0200
+++ b/client/digitallibrary/modules/pagesTotal.js	Sun Jul 07 18:03:54 2002 +0200
@@ -82,8 +82,7 @@
 	//		1 -> zoomout
 	//		2 -> zoomarea, zoompoint, moveto, scaledef
 
-	var newURL  = "dlImage.jsp?"
-	newURL += "fn=" + att[0] + "&pn=" + att[1] + "&ws=" + att[2] + "&mo=" + att[3];
+	var newQuery = "fn=" + att[0] + "&pn=" + att[1] + "&ws=" + att[2] + "&mo=" + att[3];
 
 	if (detailGrade == 0) {
 		att[4] = "0/0";
@@ -96,18 +95,18 @@
 		att[8] = 1;
 	}
 
-	newURL += "&mk=" + att[4] + "&wx=" + att[5] + "&wy=" + att[6] + "&ww=" + att[7] + "&wh=" + att[8];
+	newQuery += "&mk=" + att[4] + "&wx=" + att[5] + "&wy=" + att[6] + "&ww=" + att[7] + "&wh=" + att[8];
 
 	if (navigator.appName.toLowerCase() == "netscape") {	// mozilla-browsers (netscape 4.xx, netscape 6.xx, etc.)
-		newURL += "&dw=" + (innerWidth-30) + "&dh=" + (innerHeight-30);
-	} else {												// ie
-		newURL += "&dw=" + (document.body.clientWidth-30) + "&dh=" + (document.body.clientHeight-30);
+		newQuery += "&dw=" + (innerWidth-30) + "&dh=" + (innerHeight-30);
+	} else {												// ie, opera
+		newQuery += "&dw=" + (document.body.clientWidth-30) + "&dh=" + (document.body.clientHeight-30);
 	}
-
-	newURL += "&pt=" + att[9];
+	
+	newQuery += "&pt=" + att[9];
 
 	// debug window - checking the parameters passed to the next image
-	//alert ("DEBUG MESSAGE (complete URL in loadPicture):\n\n" + newURL);
+	//alert ("DEBUG MESSAGE (query-string in loadPicture):\n\n" + newQuery);
 
-	location.href = newURL;
+	location.href = location.pathname + "?" + newQuery;
 }
\ No newline at end of file