--- loncom/interface/londocs.pm 2017/05/10 00:03:08 1.627 +++ loncom/interface/londocs.pm 2017/05/10 13:49:14 1.628 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.627 2017/05/10 00:03:08 raeburn Exp $ +# $Id: londocs.pm,v 1.628 2017/05/10 13:49:14 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -678,7 +678,8 @@ sub group_import { my @deleted; if (ref($ltitoolsref->{$toolid}) eq 'HASH') { $toolhash{'id'} = $toolid; - if (($toolhash{'target'} eq 'iframe') || ($toolhash{'target'} eq 'window')) { + if (($toolhash{'target'} eq 'iframe') || ($toolhash{'target'} eq 'tab') || + ($toolhash{'target'} eq 'window')) { if ($toolhash{'target'} eq 'window') { foreach my $item ('width','height') { $toolhash{$item} =~ s/^\s+//; @@ -712,6 +713,15 @@ sub group_import { delete($toolhash{$item}); if ($residx) { if ($toolsettings{$item}) { + push(@deleted,$item); + } + } + } + } elsif ($toolhash{'target'} eq 'tab') { + foreach my $item ('width','height') { + delete($toolhash{$item}); + if ($residx) { + if ($toolsettings{$item}) { push(@deleted,$item); } }