[LON-CAPA-cvs] cvs: rat /client code.html
www
lon-capa-cvs@mail.lon-capa.org
Thu, 23 Jan 2003 20:23:07 -0000
www Thu Jan 23 15:23:07 2003 EDT
Modified files:
/rat/client code.html
Log:
Bug #1157
Zoom feature in RAT was broken because mime type icons did not scale.
Removed author confusion: mime type icons broken for uppercase file extensions.
Index: rat/client/code.html
diff -u rat/client/code.html:1.61 rat/client/code.html:1.62
--- rat/client/code.html:1.61 Sun Nov 3 14:07:18 2002
+++ rat/client/code.html Thu Jan 23 15:23:07 2003
@@ -4,7 +4,7 @@
The LearningOnline Network
Resource Assembly Tool
//
-// $Id: code.html,v 1.61 2002/11/03 19:07:18 www Exp $
+// $Id: code.html,v 1.62 2003/01/23 20:23:07 www Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -974,10 +974,12 @@
urlparts=url.split('.');
mime=urlparts[urlparts.length-1];
if (typeof(mime)=="undefined") { mime=''; }
+ mime=mime.toLowerCase();
}
parent.mapout.document.write
('<img border=0 width='+cw[ctype]+' height='+rh[1]
+' src="'+raticons+'resource.gif">');
+ if (zscale==3) {
if ((mime!='') && (ext!='true')) {
parent.mapout.document.write
('<br><img border=0 src="'+raticons+'left.gif"></a><a target="preview" href="'+
@@ -991,6 +993,11 @@
}
parent.mapout.document.write
('<br><img border=0 src="'+raticons+'bottom.gif">');
+ } else {
+ parent.mapout.document.write
+ ('<br><img border=0 width='+cw[ctype]+' height='+rh[1]
+ +' src="'+raticons+'bottom.gif">');
+ }
} else {
if (what=='c:') {
parent.mapout.document.write
@@ -1007,10 +1014,12 @@
urlparts=url.split('.');
mime=urlparts[urlparts.length-1];
if (typeof(mime)=="undefined") { mime=''; }
+ mime=mime.toLowerCase();
}
parent.mapout.document.write
('<img border=0 width='+cw[ctype]+' height='+rh[1]
+' src="'+raticons+'start.gif">');
+ if (zscale==3) {
if ((mime!='') && (ext!='true')) {
parent.mapout.document.write
('<br><img border=0 src="'+raticons+'left.gif"></a><a target="preview" href="'+
@@ -1024,6 +1033,11 @@
}
parent.mapout.document.write
('<br><img border=0 src="'+raticons+'bottom.gif">');
+ } else {
+ parent.mapout.document.write
+ ('<br><img border=0 width='+cw[ctype]+' height='+rh[1]
+ +' src="'+raticons+'bottom.gif">');
+ }
} else {
if (what=='rf:') {
@@ -1036,10 +1050,12 @@
urlparts=url.split('.');
mime=urlparts[urlparts.length-1];
if (typeof(mime)=="undefined") { mime=''; }
+ mime=mime.toLowerCase();
}
parent.mapout.document.write
('<img border=0 width='+cw[ctype]+' height='+rh[1]
+' src="'+raticons+'finish.gif">');
+ if (zscale==3) {
if ((mime!='') && (ext!='true')) {
parent.mapout.document.write
('<br><img border=0 src="'+raticons+'left.gif"></a><a target="preview" href="'+
@@ -1053,6 +1069,12 @@
}
parent.mapout.document.write
('<br><img border=0 src="'+raticons+'bottom.gif">');
+ } else {
+ parent.mapout.document.write
+ ('<br><img border=0 width='+cw[ctype]+' height='+rh[1]
+ +' src="'+raticons+'bottom.gif">');
+ }
+
} else {
parent.mapout.document.write
('<img border=0 width='+cw[ctype]+' height='+rh[rtype]