--- loncom/interface/loncommon.pm 2011/08/15 05:16:30 1.1017 +++ loncom/interface/loncommon.pm 2011/08/15 15:58:28 1.1018 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1017 2011/08/15 05:16:30 raeburn Exp $ +# $Id: loncommon.pm,v 1.1018 2011/08/15 15:58:28 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -633,7 +633,7 @@ ENDJS } sub javascript_array_indexof { - return < //
"; + my $div_id; + if ($id ne '') { + $div_id = " id='$id'"; + } + return "
"; } sub end_scrollbox { @@ -6978,10 +6982,14 @@ sub simple_error_page { } sub start_data_table { - my ($add_class) = @_; + my ($add_class,$id) = @_; my $css_class = (join(' ','LC_data_table',$add_class)); + my $table_id; + if (defined($id)) { + $table_id = ' id="'.$id.'"'; + } &start_data_table_count(); - return ''."\n"; + return '
'."\n"; } sub end_data_table {