[LON-CAPA-cvs] cvs: rat /client parameter.html
albertel
lon-capa-cvs@mail.lon-capa.org
Sat, 24 Feb 2007 02:04:20 -0000
albertel Fri Feb 23 21:04:20 2007 EDT
Modified files:
/rat/client parameter.html
Log:
- bug #5187, for blank string types was defaulting to 'Default Value' mode which seemed to be non-intuitive
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.41 rat/client/parameter.html:1.42
--- rat/client/parameter.html:1.41 Wed Dec 6 16:09:35 2006
+++ rat/client/parameter.html Fri Feb 23 21:04:20 2007
@@ -3,7 +3,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.41 2006/12/06 21:09:35 www Exp $
+// $Id: parameter.html,v 1.42 2007/02/24 02:04:20 albertel Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -529,11 +529,8 @@
}
if (ptype=='string') {
- if (pscat=='default') {
- tablestart('Default value or none');
- choicewrite('</table>');
- } else {
- if ((pscat=='any') || (pscat=='') || (typeof(pscat)=='undefined')) {
+ if ((pscat=='any') || (pscat=='') || (pscat=='default') ||
+ (typeof(pscat)=='undefined')) {
tablestart('Text');
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>');
choicewrite('<input name="stringval" size="20" value="'+svalue+
@@ -642,7 +639,6 @@
' type="radio" '+callradiostringeval('map_map'));
if (svalue=='map_map') { choicewrite(' checked'); }
choicewrite('> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, all resources in the map/folder are checked in..</label><br />');
- }
choicewrite('</td></table>');
}
}