--- loncom/interface/loncommon.pm 2009/07/27 12:12:47 1.868
+++ loncom/interface/loncommon.pm 2009/07/31 03:14:20 1.873
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.868 2009/07/27 12:12:47 kalberla Exp $
+# $Id: loncommon.pm,v 1.873 2009/07/31 03:14:20 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -529,6 +529,11 @@ sub coursebrowser_javascript {
}
}
}
+ if (formname == 'ccrs') {
+ var ownername = document.forms[formid].ccuname.value;
+ var ownerdom = document.forms[formid].ccdomain.options[document.forms[formid].ccdomain.selectedIndex].value;
+ url += '&cloner='+ownername+':'+ownerdom;
+ }
if (multflag !=null && multflag != '') {
url += '&multiple='+multflag;
}
@@ -620,12 +625,16 @@ function setSect(sectionlist) {
sub selectcourse_link {
my ($form,$unameele,$udomele,$desc,$extra_element,$multflag,$selecttype)=@_;
+ my $linktext = &mt('Select Course');
+ if ($selecttype eq 'Community') {
+ $linktext = &mt('Select Community');
+ }
return ''
."".&mt('Select Course').''
+ ."'>".$linktext.''
.'';
}
@@ -1787,7 +1796,7 @@ sub select_level_form {
=pod
-=item * &select_dom_form($defdom,$name,$includeempty,$showdomdesc,$autosubmit)
+=item * &select_dom_form($defdom,$name,$includeempty,$showdomdesc,$onchange)
Returns a string containing a