--- loncom/interface/courseprefs.pm 2015/05/21 23:26:35 1.71 +++ loncom/interface/courseprefs.pm 2015/09/13 19:55:34 1.73 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set configuration settings for a course # -# $Id: courseprefs.pm,v 1.71 2015/05/21 23:26:35 raeburn Exp $ +# $Id: courseprefs.pm,v 1.73 2015/09/13 19:55:34 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2430,6 +2430,7 @@ sub assign_course_categories { } else { $alert = &mt("Use 'Save' in the main window to save course categories"); } + &js_escape(\$alert); $catwin_js = < @@ -3043,8 +3044,13 @@ sub show_contents_view { sub releases_by_map { my ($r,$bymap,$url,$scopeorder,$lt) = @_; return unless ((ref($bymap) eq 'HASH') && (ref($scopeorder) eq 'ARRAY')); + my $newrow = 0; if (ref($bymap->{$url}) eq 'HASH') { foreach my $rev (sort(keys(%{$bymap->{$url}}))) { + if ($newrow) { + $r->print(&Apache::loncommon::end_data_table_row(). + &Apache::loncommon::continue_data_table_row()); + } $r->print(''.$rev.''); if (ref($bymap->{$url}{$rev}) eq 'HASH') { $r->print(''); @@ -3066,6 +3072,7 @@ sub releases_by_map { $r->print('
'); } $r->print(''); + $newrow = 1; } } else { $r->print(' ');