[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
raeburn
raeburn at source.lon-capa.org
Mon Oct 3 15:40:18 EDT 2016
raeburn Mon Oct 3 19:40:18 2016 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
- Update documentation for select_form().
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1253 loncom/interface/loncommon.pm:1.1254
--- loncom/interface/loncommon.pm:1.1253 Mon Sep 5 01:46:07 2016
+++ loncom/interface/loncommon.pm Mon Oct 3 19:40:17 2016
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1253 2016/09/05 01:46:07 raeburn Exp $
+# $Id: loncommon.pm,v 1.1254 2016/10/03 19:40:17 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2548,12 +2548,15 @@
=pod
-=item * &select_form($defdom,$name,$hashref,$onchange)
+=item * &select_form($defdom,$name,$hashref,$onchange,$readonly)
Returns a string containing a <select name='$name' size='1'> form to
allow a user to select options from a ref to a hash containing:
option_name => displayed text. An optional $onchange can include
-a javascript onchange item, e.g., onchange="this.form.submit();"
+a javascript onchange item, e.g., onchange="this.form.submit();".
+An optional arg -- $readonly -- if true will cause the select form
+to be disabled, e.g., for the case where an instructor has a section-
+specific role, and is viewing/modifying parameters.
See lonrights.pm for an example invocation and use.
More information about the LON-CAPA-cvs
mailing list