[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm
raeburn
raeburn at source.lon-capa.org
Thu Feb 29 11:28:35 EST 2024
raeburn Thu Feb 29 16:28:35 2024 EDT
Modified files:
/loncom/interface loncreateuser.pm
Log:
- When user-specific value is in use or being set via " Add/Modify a User"
set css display attribute to block for items which use a fieldset and to
inline for items which use a span.
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.475 loncom/interface/loncreateuser.pm:1.476
--- loncom/interface/loncreateuser.pm:1.475 Thu Feb 29 14:09:30 2024
+++ loncom/interface/loncreateuser.pm Thu Feb 29 16:28:35 2024
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.475 2024/02/29 14:09:30 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.476 2024/02/29 16:28:35 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -245,10 +245,15 @@
if (radioname) {
if (radioname.length > 0) {
var setvis;
+ var RegExp = /^customtext_(aboutme|blog|portfolio|portaccess|timezone|webdav)\$/;
for (var i=0; i<radioname.length; i++) {
if (radioname[i].checked == true) {
if (radioname[i].value == 1) {
- divid.style.display = 'block';
+ if (RegExp.test(item)) {
+ divid.style.display = 'inline';
+ } else {
+ divid.style.display = 'block';
+ }
setvis = 1;
}
break;
@@ -468,7 +473,7 @@
$tool_off = 'checked="checked" ';
$tool_on = '';
}
- $customsty = ' style="display:block;"';
+ $customsty = ' style="display:inline;"';
}
}
$output .= ' <tr class="LC_info_row">'."\n".
More information about the LON-CAPA-cvs
mailing list