--- loncom/interface/loncommon.pm 2009/09/25 13:51:58 1.890 +++ loncom/interface/loncommon.pm 2009/11/10 13:58:55 1.913 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.890 2009/09/25 13:51:58 droeschl Exp $ +# $Id: loncommon.pm,v 1.913 2009/11/10 13:58:55 droeschl Exp $ # # Copyright Michigan State University Board of Trustees # @@ -482,8 +482,11 @@ ENDAUTHORBRW } sub coursebrowser_javascript { - my ($domainfilter,$sec_element,$formname)=@_; - my $crs_or_grp_alert = &mt('Please select the type of LON-CAPA entity - Course or Community - for which you wish to add/modify a user role.'); + my ($domainfilter,$sec_element,$formname,$role_element,$crstype) = @_; + my $wintitle = &mt('Course Browser'); + if ($crstype ne '') { + $wintitle = &mt($crstype); + } my $id_functions = &javascript_index_functions(); my $output = '