--- loncom/interface/loncommon.pm 2009/10/30 04:44:56 1.905 +++ loncom/interface/loncommon.pm 2010/09/01 16:51:47 1.948.2.9 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.905 2009/10/30 04:44:56 raeburn Exp $ +# $Id: loncommon.pm,v 1.948.2.9 2010/09/01 16:51:47 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -482,8 +482,11 @@ ENDAUTHORBRW } sub coursebrowser_javascript { - my ($domainfilter,$sec_element,$formname,$role_element)=@_; - 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 = 'Course_Browser'; + if ($crstype eq 'Community') { + $wintitle = 'Community_Browser'; + } my $id_functions = &javascript_index_functions(); my $output = '