[LON-CAPA-cvs] cvs: rat /client parameter.html

albertel lon-capa-cvs-allow@mail.lon-capa.org
Wed, 13 Jun 2007 01:01:34 -0000


albertel		Tue Jun 12 21:01:34 2007 EDT

  Modified files:              
    /rat/client	parameter.html 
  Log:
  - one more tweak to string parameter handling if the first parameter 
    changes was a default style string, save failed to work
  
  
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.44 rat/client/parameter.html:1.45
--- rat/client/parameter.html:1.44	Tue Jun  5 16:44:14 2007
+++ rat/client/parameter.html	Tue Jun 12 21:01:33 2007
@@ -3,7 +3,7 @@
 The LearningOnline Network with CAPA
 Parameter Input Window
 //
-// $Id: parameter.html,v 1.44 2007/06/05 20:44:14 albertel Exp $
+// $Id: parameter.html,v 1.45 2007/06/13 01:01:33 albertel Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -840,11 +840,12 @@
   if (ptype=='string') {
      //sopt('default','Default');
      if (pscat == 'yesno')        { sopt('yesno','Yes/No'); }
-     if (pscat == 'examtype')     { sopt('examtype','Exam Type'); }
-     if (pscat == 'questiontype') { sopt('questiontype','Question Type'); }
-     if (pscat == 'ip')           { sopt('ip','IP Number/Name'); }
-     if (pscat == 'fileext')      { sopt('fileext','File Extension'); }
-     if (pscat == 'useslots')     { sopt('useslots','Slots control access'); }
+     else if (pscat == 'examtype')     { sopt('examtype','Exam Type'); }
+     else if (pscat == 'questiontype') { sopt('questiontype','Question Type'); }
+     else if (pscat == 'ip')           { sopt('ip','IP Number/Name'); }
+     else if (pscat == 'fileext')      { sopt('fileext','File Extension'); }
+     else if (pscat == 'useslots')     { sopt('useslots','Slots control access'); }
+     else { pscat = 'any'; }
      sopt('any','String Value');
   }