# HG changeset patch # User luginbue # Date 1026057834 -7200 # Node ID 81f5e75718ac14e1961ffe511d3a45dd3948384a # Parent 9a3fc958fb4345beedd4b032adb9011596f964f0 bugfixes and new module diff -r 9a3fc958fb43 -r 81f5e75718ac client/digitallibrary/modules/pagesTotal.js --- 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