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

raeburn raeburn at source.lon-capa.org
Wed Feb 28 09:41:47 EST 2018


raeburn		Wed Feb 28 14:41:47 2018 EDT

  Modified files:              
    /rat	lonpage.pm 
  Log:
  - Bug 6862.
    Avoid a javascript error in Internet Explorer and MS Edge when using
    form.elements[name] when name begins with a number by prepending p_
    to the prefix used to create the name.
  
  
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.125 rat/lonpage.pm:1.126
--- rat/lonpage.pm:1.125	Fri Sep 29 19:18:18 2017
+++ rat/lonpage.pm	Wed Feb 28 14:41:47 2018
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Page Handler
 #
-# $Id: lonpage.pm,v 1.125 2017/09/29 19:18:18 raeburn Exp $
+# $Id: lonpage.pm,v 1.126 2018/02/28 14:41:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -324,8 +324,8 @@
                               }
                           } elsif ($cellemb{$_} eq 'ssi') {
 # --------------------------------------------------------- This is an SSI cell
-			      my $prefix=$_.'_';
-                              my $idprefix= join('_',($mapid,$resid,''));
+			      my $prefix='p_'.$_.'_';
+                              my $idprefix= 'p_'.join('_',($mapid,$resid,''));
                               my %posthash=('request.prefix' => $prefix,
 					    'LONCAPA_INTERNAL_no_discussion' => 'true',
 					    'symb' => $symb);




More information about the LON-CAPA-cvs mailing list