version 1.31, 2023/05/22 21:10:55
|
version 1.35, 2025/02/03 22:52:36
|
Line 109 sub handler {
|
Line 109 sub handler {
|
%ltitools = ( |
%ltitools = ( |
dom => \%domtools, |
dom => \%domtools, |
crs => \%crstools, |
crs => \%crstools, |
); |
); |
} |
} |
my $js = &Apache::lonhtmlcommon::scripttag(&extedit_javascript()); |
my $js = &Apache::lonhtmlcommon::scripttag(&extedit_javascript()); |
my $pathitem = '<input type="hidden" name="folderpath" value="'. |
my $pathitem = '<input type="hidden" name="folderpath" value="'. |
Line 520 sub extedit_form {
|
Line 520 sub extedit_form {
|
if (ref($ltitools->{'dom'}) eq 'HASH') { |
if (ref($ltitools->{'dom'}) eq 'HASH') { |
$ltihash = $ltitools->{'dom'}->{$tool}; |
$ltihash = $ltitools->{'dom'}->{$tool}; |
} |
} |
} |
} |
} |
} |
if (($tool ne '') && (ref($ltihash) eq 'HASH')) { |
if (($tool ne '') && (ref($ltihash) eq 'HASH')) { |
my $tooltitle = $ltihash->{'title'}; |
my $tooltitle = $ltihash->{'title'}; |
Line 631 sub extedit_form {
|
Line 631 sub extedit_form {
|
$exttypeofftext = &mt('No external tools defined in the domain are available for selection.'); |
$exttypeofftext = &mt('No external tools defined in the domain are available for selection.'); |
} elsif (!$numcrstools && $numdomtools) { |
} elsif (!$numcrstools && $numdomtools) { |
$defcheck{'dom'} = ' checked="checked"'; |
$defcheck{'dom'} = ' checked="checked"'; |
$subdivstyle = 'display:none'; |
$subdivstyle = 'display:block'; |
$exttypeonsty = 'display:block'; |
$exttypeonsty = 'display:block'; |
my $firstoption = '<option value="" selected="selected">'.&mt('Select').'</option>'; |
my $firstoption = '<option value="" selected="selected">'.&mt('Select').'</option>'; |
$seloptions = &ordered_tooloptions($ltitools->{'dom'}); |
$seloptions = &ordered_tooloptions($ltitools->{'dom'}); |
Line 709 sub extedit_form {
|
Line 709 sub extedit_form {
|
$chooser = " |
$chooser = " |
<div> |
<div> |
<span$srcclass> |
<span$srcclass> |
|
<label> |
$extsrc |
$extsrc |
$urlelem |
$urlelem |
|
</label> |
$preview |
$preview |
</span> |
</span> |
</div> |
</div> |
"; |
"; |
} |
} |
|
my $idattr; |
|
unless ($subdivid eq '') { |
|
$idattr = 'id="'.$subdivid.'"'; |
|
} |
$form = <<ENDFORM; |
$form = <<ENDFORM; |
<form action="$action" method="post" name="$formname" id="$formid"> |
<form action="$action" method="post" name="$formname" id="$formid"> |
<fieldset id="$fieldsetid" style="$fieldsetstyle"> |
<fieldset id="$fieldsetid" style="$fieldsetstyle"> |
$legend |
$legend |
$active |
$active |
$chooser |
$chooser |
<div id="$subdivid" style="$subdivstyle"> |
<div $idattr style="$subdivstyle"> |
<span$srcclass> |
<span$srcclass> |
|
<label> |
$title |
$title |
<input type="text" size="$size" name="exttitle" value="$orig_title" $disabled /> |
<input type="text" size="$size" name="exttitle" value="$orig_title" $disabled /> |
|
</label> |
<input type="hidden" name="importdetail" value="" /> |
<input type="hidden" name="importdetail" value="" /> |
$pathitem |
$pathitem |
$hiddenelem |
$hiddenelem |
Line 1053 function setExternal(extform,residx,type
|
Line 1061 function setExternal(extform,residx,type
|
if (residx > 0) { |
if (residx > 0) { |
labelinput += '_'+residx; |
labelinput += '_'+residx; |
titleinput += '_'+residx; |
titleinput += '_'+residx; |
appendinput += '_'+residx; |
appendinput += '_'+residx; |
} |
} |
if (document.getElementById(labelinput)) { |
if (document.getElementById(labelinput)) { |
var crslabel = document.getElementById(labelinput).value; |
var crslabel = document.getElementById(labelinput).value; |
Line 1360 function updateExttool(caller,form,suppl
|
Line 1368 function updateExttool(caller,form,suppl
|
if ((ltitoolsDisplay[i][j]) && (ltitoolsTarget[i][j] == 'window')) { |
if ((ltitoolsDisplay[i][j]) && (ltitoolsTarget[i][j] == 'window')) { |
dimen = 'block'; |
dimen = 'block'; |
dimenwidth = ltitoolsWidth[i][j]; |
dimenwidth = ltitoolsWidth[i][j]; |
dimenheight = ltitoolsHeight[i][j]; |
dimenheight = ltitoolsHeight[i][j]; |
} |
} |
if (document.getElementById(dimendiv)) { |
if (document.getElementById(dimendiv)) { |
document.getElementById(dimendiv).style.display = dimen; |
document.getElementById(dimendiv).style.display = dimen; |
Line 1387 function updateExttool(caller,form,suppl
|
Line 1395 function updateExttool(caller,form,suppl
|
} |
} |
if (document.getElementById(linktextinput)) { |
if (document.getElementById(linktextinput)) { |
if (ltitoolsLink[i][j]) { |
if (ltitoolsLink[i][j]) { |
document.getElementById(linktextinput).value = ltitoolsLinkDef[i][j]; |
document.getElementById(linktextinput).value = ltitoolsLinkDef[i][j]; |
} else { |
} else { |
document.getElementById(linktextinput).value = ''; |
document.getElementById(linktextinput).value = ''; |
} |
} |