[LON-CAPA-cvs] cvs: loncom /interface domainprefs.pm

raeburn raeburn at source.lon-capa.org
Fri Feb 18 08:39:22 EST 2022


raeburn		Fri Feb 18 13:39:22 2022 EDT

  Modified files:              
    /loncom/interface	domainprefs.pm 
  Log:
  - Coding style. No functionality change.
    Curly brace around variable name in place of escaping trailing underscore.
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.407 loncom/interface/domainprefs.pm:1.408
--- loncom/interface/domainprefs.pm:1.407	Wed Feb 16 04:33:43 2022
+++ loncom/interface/domainprefs.pm	Fri Feb 18 13:39:22 2022
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.407 2022/02/16 04:33:43 raeburn Exp $
+# $Id: domainprefs.pm,v 1.408 2022/02/18 13:39:22 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -11568,7 +11568,7 @@
     field.value.replace(/^\s+/,'');
     field.value.replace(/\s+\$/,'');
     var regexdigit=/^\\d+\$/;
-    if (field.name == '$prefix\_min') {
+    if (field.name == '${prefix}_min') {
         if (field.value == '') {
             alert('$intalert{passmin}');
             field.value = '$defmin';
@@ -11588,7 +11588,7 @@
             field.value = '';
         }
         if (field.value != '') {
-            if (field.name == '$prefix\_expire') {
+            if (field.name == '${prefix}_expire') {
                 var regexpposnum=/^\\d+(|\\.\\d*)\$/; 
                 if (!regexpposnum.test(field.value)) {
                     alert('$intalert{passexp}');
@@ -11602,10 +11602,10 @@
                 }
             } else {
                 if (!regexdigit.test(field.value)) {
-                    if (field.name == '$prefix\_max') {
+                    if (field.name == '${prefix}_max') {
                         alert('$intalert{passmax}');
                     } else {
-                        if (field.name == '$prefix\_numsaved') {
+                        if (field.name == '${prefix}_numsaved') {
                             alert('$intalert{passnum}');
                         }
                     }




More information about the LON-CAPA-cvs mailing list