[LON-CAPA-cvs] cvs: rat / lonratedt.pm

www lon-capa-cvs@mail.lon-capa.org
Wed, 22 May 2002 20:40:00 -0000


www		Wed May 22 16:40:00 2002 EDT

  Modified files:              
    /rat	lonratedt.pm 
  Log:
  Apparently, "import" is a reserved word in NS 6.2 and Explorer. Renamed
  select field. Fixed error in <script> block, and group search, etc, runs now.
  Bug #466
  
  
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.26 rat/lonratedt.pm:1.27
--- rat/lonratedt.pm:1.26	Wed May 22 09:31:22 2002
+++ rat/lonratedt.pm	Wed May 22 16:39:59 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Edit Handler for RAT Maps
 #
-# $Id: lonratedt.pm,v 1.26 2002/05/22 13:31:22 www Exp $
+# $Id: lonratedt.pm,v 1.27 2002/05/22 20:39:59 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -354,11 +354,11 @@
    my @targetselect=();
    undef @importselect;
    undef @targetselect;
-   if (defined($ENV{'form.import'})) {
-       if (ref($ENV{'form.import'})) {
-	   @importselect=sort(@{$ENV{'form.import'}});
+   if (defined($ENV{'form.importsel'})) {
+       if (ref($ENV{'form.importsel'})) {
+	   @importselect=sort(@{$ENV{'form.importsel'}});
        } else {
-           @importselect=($ENV{'form.import'});
+           @importselect=($ENV{'form.importsel'});
        }
    }
    if (defined($ENV{'form.target'})) {
@@ -684,7 +684,7 @@
 
    function viewimport() {
        openview((document.forms.simpleedit.curimpdetail.value.split('&'))
-                [document.forms.simpleedit.import.selectedIndex+1]);
+                [document.forms.simpleedit.importsel.selectedIndex+1]);
    }
 
 </script>
@@ -721,7 +721,7 @@
 <hr><input type=button onClick="javascript:viewtarget()" value="View">
 </td></tr>
 
-<tr><td bgcolor="#FFFFCC"><select name="import" multiple>
+<tr><td bgcolor="#FFFFCC"><select name="importsel" size=10 multiple>
 $importwindow
 </select>
 </td>
@@ -735,7 +735,7 @@
 Paste after selected<br>
 <input type=submit name=paste value='-->'>
 </td>
-<td bgcolor="#FFFFCC"><select name="target" multiple>
+<td bgcolor="#FFFFCC"><select name="target" size=10 multiple>
 $targetwindow
 </select>
 </table>