--- loncom/interface/domainprefs.pm 2017/11/30 01:52:14 1.318
+++ loncom/interface/domainprefs.pm 2017/11/30 02:17:50 1.319
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: domainprefs.pm,v 1.318 2017/11/30 01:52:14 raeburn Exp $
+# $Id: domainprefs.pm,v 1.319 2017/11/30 02:17:50 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2586,7 +2586,10 @@ ENDSCRIPT
sub ltitools_javascript {
my ($settings) = @_;
- return unless(ref($settings) eq 'HASH');
+ my $togglejs = <itools_toggle_js();
+ unless (ref($settings) eq 'HASH') {
+ return $togglejs;
+ }
my (%ordered,$total,%jstext);
$total = 0;
foreach my $item (keys(%{$settings})) {
@@ -2604,7 +2607,7 @@ sub ltitools_javascript {
return <<"ENDSCRIPT";
+$togglejs
+
+ENDSCRIPT
+}
+
+sub ltitools_toggle_js {
+ return <<"ENDSCRIPT";
+
+
ENDSCRIPT
}
@@ -3896,7 +3941,7 @@ sub print_ltitools {
$imgsrc = '';
}
}
- my $chgstr = ' onchange="javascript:reorderLTI(this.form,'."'ltitools_".$item."'".');"';
+ my $chgstr = ' onchange="javascript:reorderLTITools(this.form,'."'ltitools_".$item."'".');"';
$datatable .= '
'
.' |