--- loncom/interface/domainprefs.pm 2013/12/24 19:15:10 1.216 +++ loncom/interface/domainprefs.pm 2013/12/24 21:59:36 1.217 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.216 2013/12/24 19:15:10 raeburn Exp $ +# $Id: domainprefs.pm,v 1.217 2013/12/24 21:59:36 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2054,7 +2054,7 @@ sub print_textbookcourses { my $confname = $dom.'-domainconfig'; my $switchserver = &check_switchserver($dom,$confname); my $maxnum = scalar(keys(%ordered)); - my $datatable; + my $datatable = &textbookcourses_javascript(\%ordered); if (keys(%ordered)) { my @items = sort { $a <=> $b } keys(%ordered); for (my $i=0; $i<@items; $i++) { @@ -2074,7 +2074,7 @@ sub print_textbookcourses { $imgsrc = ''; } } - my $chgstr = ' onchange="javascript:reorderBooks(this.form,'."'','$key','$i'".');"'; + my $chgstr = ' onchange="javascript:reorderBooks(this.form,'."'$key'".');"'; $datatable .= '