--- loncom/interface/lonextresedit.pm 2025/03/15 03:10:09 1.8.2.4.4.4
+++ loncom/interface/lonextresedit.pm 2023/05/22 21:10:55 1.31
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: lonextresedit.pm,v 1.8.2.4.4.4 2025/03/15 03:10:09 raeburn Exp $
+# $Id: lonextresedit.pm,v 1.31 2023/05/22 21:10:55 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -109,7 +109,7 @@ sub handler {
%ltitools = (
dom => \%domtools,
crs => \%crstools,
- );
+ );
}
my $js = &Apache::lonhtmlcommon::scripttag(&extedit_javascript());
my $pathitem = '';
}
$formname = 'edit'.$type.'_'.$residx;
- $fieldsetid = 'upload'.$type.$residx;
+ $fieldsetid = 'external'.$type.$residx;
$urlid = $type.'url_'.$residx;
map { $toolattr{$_} .= '_'.$residx; } (keys(%toolattr));
$srcclass = ' class="LC_nobreak"';
@@ -482,7 +472,7 @@ sub extedit_form {
if ($type eq 'tool') {
$link = $lt{'et'};
}
- $link = ''.$link.''.$helpitem;
+ $link = ''.$link.''.$helpitem;
if ($type eq 'tool') {
$legend = $lt{'te'};
} else {
@@ -530,7 +520,7 @@ sub extedit_form {
if (ref($ltitools->{'dom'}) eq 'HASH') {
$ltihash = $ltitools->{'dom'}->{$tool};
}
- }
+ }
}
if (($tool ne '') && (ref($ltihash) eq 'HASH')) {
my $tooltitle = $ltihash->{'title'};
@@ -586,21 +576,6 @@ sub extedit_form {
if ($ltihash->{'crsconf'}->{'explanation'}) {
$explanationstyle = 'padding:0;display:inline';
}
- if ($ltihash->{'crsconf'}->{'returnurl'}) {
- $returnurl = $toolhash{'returnurl'};
- $returnurlstyle = 'display:inline';
- $backtourl = $toolhash{'backtourl'};
- if ($returnurl eq 'none') {
- $chknoreturn = ' checked="checked"';
- $customreturn = 'hidden';
- } elsif (($returnurl eq 'custom') && ($backtourl ne '')) {
- $chkreturncust = ' checked="checked"';
- $customreturn = 'text';
- } else {
- $chkreturndef = ' checked="checked"';
- $customreturn = 'hidden';
- }
- }
}
$toolelem = ''.$image.' '.$tooltitle.'
';
$gradablestyle = 'display:inline';
@@ -656,7 +631,7 @@ sub extedit_form {
$exttypeofftext = &mt('No external tools defined in the domain are available for selection.');
} elsif (!$numcrstools && $numdomtools) {
$defcheck{'dom'} = ' checked="checked"';
- $subdivstyle = 'display:block';
+ $subdivstyle = 'display:none';
$exttypeonsty = 'display:block';
my $firstoption = '';
$seloptions = &ordered_tooloptions($ltitools->{'dom'});
@@ -683,15 +658,8 @@ sub extedit_form {
$crslabel = $env{'course.'.$cdom.'_'.$cnum.'.internal.coursecode'};
$crstitle = $env{'course.'.$cdom.'_'.$cnum.'.description'};
$crsappend = '';
- $returnurl = '';
- $backtourl = '';
- $customreturn = 'hidden';
$chknogrd = ' checked="checked"';
- $chknoreturn = '';
- $chkreturndef = ' checked="checked"';
- $chkreturncust = '';
}
- my $onclickreturl = ' onclick="updateReturnUrl('."this.form,'$toolattr{'customreturnurl'}','$toolattr{'returnurldiv'}','exttoolreturnurl'".');"';
$toolelem .= '