[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lon-capa-cvs
Subject:    [LON-CAPA-cvs] cvs: rat / lonpage.pm
From:       raeburn <raeburn () source ! lon-capa ! org>
Date:       2018-02-28 14:41:47
Message-ID: cvsraeburn1519828907 () cvsserver
[Download RAW message or body]

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);


_______________________________________________
LON-CAPA-cvs mailing list
LON-CAPA-cvs@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic