--- loncom/interface/loncommon.pm 2009/08/05 13:40:10 1.878 +++ loncom/interface/loncommon.pm 2009/08/15 00:25:43 1.885 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.878 2009/08/05 13:40:10 bisitz Exp $ +# $Id: loncommon.pm,v 1.885 2009/08/15 00:25:43 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -602,7 +602,7 @@ sub userbrowser_javascript { my $id_functions = &javascript_index_functions(); return <<"ENDUSERBRW"; -function openuserbrowser(formname,uname,udom,ulast,ufirst,uemail,hideudom) { +function openuserbrowser(formname,uname,udom,ulast,ufirst,uemail,hideudom,crsdom) { var url = '/adm/pickuser?'; var userdom = getDomainFromSelectbox(formname,udom); if (userdom != null) { @@ -615,7 +615,8 @@ function openuserbrowser(formname,uname, '&ulastelement='+ulast+ '&ufirstelement='+ufirst+ '&uemailelement='+uemail+ - '&hideudomelement='+hideudom; + '&hideudomelement='+hideudom+ + '&coursedom='+crsdom; var title = 'User_Browser'; var options = 'scrollbars=1,resizable=1,menubar=0'; options += ',width=700,height=600'; @@ -713,9 +714,11 @@ sub selectauthor_link { } sub selectuser_link { - my ($form,$unameelem,$domelem,$lastelem,$firstelem,$emailelem,$hdomelem,$linktext) = @_; + my ($form,$unameelem,$domelem,$lastelem,$firstelem,$emailelem,$hdomelem, + $coursedom,$linktext) = @_; return ''.$linktext.''; + "'$lastelem','$firstelem','$emailelem','$hdomelem','$coursedom'". + ');">'.$linktext.''; } sub check_uncheck_jscript { @@ -4465,7 +4468,7 @@ sub bodytag { # Explicit link to get inline menu my $menu= ($no_inline_link?'' - :''.&mt('Switch to Inline Menu Mode').''); + :''.&mt('Switch to Inline Menu Mode').''); $bodytag .= qq|