--- loncom/interface/londocs.pm 2013/03/31 22:36:01 1.538
+++ loncom/interface/londocs.pm 2013/04/01 19:39:13 1.539
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.538 2013/03/31 22:36:01 raeburn Exp $
+# $Id: londocs.pm,v 1.539 2013/04/01 19:39:13 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -834,7 +834,7 @@ sub print_paste_buffer {
$othercourse = 1;
if ($env{"user.priv.cm./$srcdom/$srcnum"} =~ /\Q:mdc&F\E/) {
if ($canpaste) {
- $othercrs = '
'.&mt('(from another course).');
+ $othercrs = '
'.&mt('(from another course)');
}
} else {
$canpaste = 0;
@@ -2170,7 +2170,9 @@ sub update_parameter {
}
}
} else {
- map { $allchecked{$which}{$_} = 1; } split(/,/,$env{'form.all'.$which});
+ if ($env{'form.all'.$which}) {
+ map { $allchecked{$which}{$_} = 1; } split(/,/,$env{'form.all'.$which});
+ }
}
}
my $haschanges = 0;
@@ -5643,69 +5645,78 @@ function propagateState(form,param) {
}
function checkForSubmit(targetform,param,context,idx,folderpath,index,oldtitle,skip_confirm,container,folder) {
+ var dosettings;
+ var doaction;
var control = document.togglemultsettings;
if (context == 'actions') {
control = document.togglemultactions;
+ doaction = 1;
+ } else {
+ dosettings = 1;
}
- if (control.showmultpick.length) {
- for (var i=0; i