[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
raeburn
raeburn@source.lon-capa.org
Fri, 31 Jul 2009 03:24:30 -0000
raeburn Fri Jul 31 03:24:30 2009 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
- Need to actually include 'onchange' to trigger the action specified in the $onchange arg.
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.873 loncom/interface/loncommon.pm:1.874
--- loncom/interface/loncommon.pm:1.873 Fri Jul 31 03:14:20 2009
+++ loncom/interface/loncommon.pm Fri Jul 31 03:24:30 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.873 2009/07/31 03:14:20 raeburn Exp $
+# $Id: loncommon.pm,v 1.874 2009/07/31 03:24:30 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1815,7 +1815,7 @@
sub select_dom_form {
my ($defdom,$name,$includeempty,$showdomdesc,$onchange) = @_;
if ($onchange) {
- ' onchange="'.$onchange.'"';
+ $onchange = ' onchange="'.$onchange.'"';
}
my @domains = sort {lc($a) cmp lc($b)} (&Apache::lonnet::all_domains());
if ($includeempty) { @domains=('',@domains); }