diff client/digitallibrary/navcat_n6.js @ 120:cbfc008b4245

digicat takes mode argument as fourth argument (needed for speedy thumbnails with mo=fit,lores)
author robcast
date Wed, 11 Jun 2003 22:40:06 +0200
parents 866e798e2bef
children
line wrap: on
line diff
--- a/client/digitallibrary/navcat_n6.js	Wed Jun 11 22:37:43 2003 +0200
+++ b/client/digitallibrary/navcat_n6.js	Wed Jun 11 22:40:06 2003 +0200
@@ -38,7 +38,7 @@
 		for (j = 0; j < att[3]; j++) {
 			indexNr = parseInt(att[1])+i*parseInt(att[3])+j;
 			thumb  = parent.baseUrl + "/servlet/Scaler/";
-			thumb += att[0] + "?" + "pn=" + indexNr + "&ws=1.0&mo=fit&dw=" + cellWidth + "&dh=" + (cellHeight-25);
+			thumb += att[0] + "?" + "pn=" + indexNr + "&ws=1.0&mo=" + att[4] + "&dw=" + cellWidth + "&dh=" + (cellHeight-25);
 			whichFrame.document.write('<td align="center" valign="middle" width="' + cellWidth + '" height="' + cellHeight + '" class="myFont">');
 			whichFrame.document.write('<a href="javascript:loadDigilib(' + indexNr + ')">');
 			whichFrame.document.write('<img src="' + thumb + '" border="0">');
@@ -118,4 +118,5 @@
 	if (att.length < 4) {
 		att[3] = 4;
 	}
+
 }