--- loncom/interface/lonconfigsettings.pm 2015/05/22 16:52:16 1.21.4.7 +++ loncom/interface/lonconfigsettings.pm 2016/10/23 21:13:51 1.21.4.9 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: lonconfigsettings.pm,v 1.21.4.7 2015/05/22 16:52:16 raeburn Exp $ +# $Id: lonconfigsettings.pm,v 1.21.4.9 2016/10/23 21:13:51 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -74,6 +74,7 @@ sub print_header { \@code_order); if (@code_order) { my $noinstcodestr = &mt('You indicated cloning based on category, but did not select any categories.'); + &js_escape(\$noinstcodestr); $instcode_check = <<"ENDSCRIPT"; if (formname == document.display) { if (formname.cloners_instcode.length) { @@ -117,6 +118,7 @@ ENDSCRIPT } } my $alert = &mt('You must select at least one functionality type to display.'); + &js_escape(\$alert); my $js = ' '."\n"); - $r->print('