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

raeburn raeburn at source.lon-capa.org
Wed Mar 11 15:55:44 EDT 2015


raeburn		Wed Mar 11 19:55:44 2015 EDT

  Modified files:              
    /rat	lonpage.pm 
  Log:
  - Inhibit auto-completion for input textboxes using javascript in composite 
    pages (.page).
  
  
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.107 rat/lonpage.pm:1.108
--- rat/lonpage.pm:1.107	Tue Dec 30 20:03:19 2014
+++ rat/lonpage.pm	Wed Mar 11 19:55:44 2015
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Page Handler
 #
-# $Id: lonpage.pm,v 1.107 2014/12/30 20:03:19 raeburn Exp $
+# $Id: lonpage.pm,v 1.108 2015/03/11 19:55:44 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -404,6 +404,8 @@
                                   }
                                   $output=~
                                       s/\<((?:input|select)[^\>]+\Qjavascript:setSubmittedPart\E)\(\s*[\'\"]([^\'\"]+)[\'\"]*\s*\)/\<$1('$2','$prefix')/gsi;
+                                  $output=~
+                                      s/\<(input[^\>]+\Qonfocus=\"javascript:disableAutoComplete\E)\(\'([^\']+)\'\)(;\")/\<$1('$idprefix$2')$3/gsi;
                               }
                               $thisdir=~s/\/[^\/]*$//;
 			      foreach (@rlinks) {




More information about the LON-CAPA-cvs mailing list