--- loncom/interface/loncommon.pm 2009/09/07 13:13:58 1.692.4.17 +++ loncom/interface/loncommon.pm 2009/10/24 03:32:49 1.692.4.20 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.692.4.17 2009/09/07 13:13:58 raeburn Exp $ +# $Id: loncommon.pm,v 1.692.4.20 2009/10/24 03:32:49 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -492,6 +492,7 @@ sub coursebrowser_javascript { $output .= <<"ENDSTDBRW"; function opencrsbrowser(formname,uname,udom,desc,extra_element,multflag,crstype) { var url = '/adm/pickcourse?'; + var formid = getFormIdByName(formname); var domainfilter = getDomainFromSelectbox(formname,udom); if (domainfilter != null) { if (domainfilter != '') { @@ -4097,7 +4098,7 @@ sub determinedomain { my $domain=shift; if (! $domain) { # Determine domain if we have not been given one - $domain = $Apache::lonnet::perlvar{'lonDefDomain'}; + $domain = &Apache::lonnet::default_login_domain(); if ($env{'user.domain'}) { $domain=$env{'user.domain'}; } if ($env{'request.role.domain'}) { $domain=$env{'request.role.domain'}; @@ -4735,6 +4736,38 @@ div.LC_confirm_box .LC_success img { color: #999999; } +.LC_discussion { + background: $tabbg; + border: 1px solid black; + margin: 2px; +} + +.LC_disc_action_links_bar { + background: $tabbg; + border: none; + margin: 4px; +} + +.LC_disc_action_left { + text-align: left; +} + +.LC_disc_action_right { + text-align: right; +} + +.LC_disc_new_item { + background: white; + border: 2px solid red; + margin: 2px; +} + +.LC_disc_old_item { + background: white; + border: 1px solid black; + margin: 2px; +} + table.LC_pastsubmission { border: 1px solid black; margin: 2px; @@ -9678,6 +9711,16 @@ sub group_term { return $names{$crstype}; } +sub course_types { + my @types = ('official','unofficial','community'); + my %typename = ( + official => 'Official course', + unofficial => 'Unofficial course', + community => 'Community', + ); + return (\@types,\%typename); +} + sub icon { my ($file)=@_; my $curfext = lc((split(/\./,$file))[-1]);