version 1.75, 2015/03/07 23:17:15
|
version 1.79, 2016/03/29 14:05:10
|
Line 208 sub print_course_selection_page {
|
Line 208 sub print_course_selection_page {
|
my %courses = &Apache::loncommon::search_courses($dom,$type,$filter,$numtitles, |
my %courses = &Apache::loncommon::search_courses($dom,$type,$filter,$numtitles, |
undef,undef,undef,\@codetitles); |
undef,undef,undef,\@codetitles); |
&Apache::lonpickcourse::display_matched_courses($r,$type,0,$action,undef,undef,undef, |
&Apache::lonpickcourse::display_matched_courses($r,$type,0,$action,undef,undef,undef, |
%courses); |
undef,undef,%courses); |
return; |
return; |
} |
} |
|
|
Line 1711 sub modify_postsubmit_config {
|
Line 1711 sub modify_postsubmit_config {
|
); |
); |
my $putreply = &Apache::lonnet::put('environment',\%cenv,$cdom,$cnum); |
my $putreply = &Apache::lonnet::put('environment',\%cenv,$cdom,$cnum); |
if ($putreply eq 'ok') { |
if ($putreply eq 'ok') { |
$r->print(&mt('Submit buttin will not be disabled after student submission')); |
$r->print(&mt('Submit button will not be disabled after student submission')); |
} else { |
} else { |
$r->print($lt{'erro'}); |
$r->print($lt{'erro'}); |
} |
} |
Line 1901 function hide_searching() {
|
Line 1901 function hide_searching() {
|
} elsif ($phase eq 'setquota') { |
} elsif ($phase eq 'setquota') { |
my $invalid = &mt('The quota you entered contained invalid characters.'); |
my $invalid = &mt('The quota you entered contained invalid characters.'); |
my $alert = &mt('You must enter a number'); |
my $alert = &mt('You must enter a number'); |
|
&js_escape(\$invalid); |
|
&js_escape(\$alert); |
my $regexp = '/^\s*(\d+\.?\d*|\.\d+)\s*$/'; |
my $regexp = '/^\s*(\d+\.?\d*|\.\d+)\s*$/'; |
$js .= <<"ENDSCRIPT"; |
$js .= <<"ENDSCRIPT"; |
|
|
Line 1920 ENDSCRIPT
|
Line 1922 ENDSCRIPT
|
} elsif ($phase eq 'setanon') { |
} elsif ($phase eq 'setanon') { |
my $invalid = &mt('The responder threshold you entered is invalid.'); |
my $invalid = &mt('The responder threshold you entered is invalid.'); |
my $alert = &mt('You must enter a positive integer.'); |
my $alert = &mt('You must enter a positive integer.'); |
|
&js_escape(\$invalid); |
|
&js_escape(\$alert); |
my $regexp = ' /^\s*\d+\s*$/'; |
my $regexp = ' /^\s*\d+\s*$/'; |
$js .= <<"ENDSCRIPT"; |
$js .= <<"ENDSCRIPT"; |
|
|
Line 1945 ENDSCRIPT
|
Line 1949 ENDSCRIPT
|
my $invalid = &mt('The choice entered for disabling the submit button is invalid.'); |
my $invalid = &mt('The choice entered for disabling the submit button is invalid.'); |
my $invalidtimeout = &mt('The timeout you entered for disabling the submit button is invalid.'); |
my $invalidtimeout = &mt('The timeout you entered for disabling the submit button is invalid.'); |
my $alert = &mt('Enter one of: a positive integer, 0 (for no timeout), or leave blank to use domain default'); |
my $alert = &mt('Enter one of: a positive integer, 0 (for no timeout), or leave blank to use domain default'); |
|
&js_escape(\$invalid); |
|
&js_escape(\$invalidtimeout); |
|
&js_escape(\$alert); |
my $regexp = ' /^\s*\d+\s*$/'; |
my $regexp = ' /^\s*\d+\s*$/'; |
|
|
$js .= <<"ENDSCRIPT"; |
$js .= <<"ENDSCRIPT"; |
Line 2129 sub hidden_form_elements {
|
Line 2136 sub hidden_form_elements {
|
sub showcredits { |
sub showcredits { |
my ($dom) = @_; |
my ($dom) = @_; |
my %domdefaults = &Apache::lonnet::get_domain_defaults($dom); |
my %domdefaults = &Apache::lonnet::get_domain_defaults($dom); |
if ($domdefaults{'officialcredits'} || $domdefaults{'unofficialcredits'} || $domdefaults{'textbokcredits'}) { |
if ($domdefaults{'officialcredits'} || $domdefaults{'unofficialcredits'} || $domdefaults{'textbookcredits'}) { |
return 1; |
return 1; |
} |
} |
} |
} |