version 1.16, 2017/04/25 22:18:59
|
version 1.18, 2017/05/08 14:20:20
|
Line 60 sub handler {
|
Line 60 sub handler {
|
$symb,$type); |
$symb,$type); |
if (($env{'form.folderpath'} =~ /^supplemental/) && ($env{'form.suppurl'})) { |
if (($env{'form.folderpath'} =~ /^supplemental/) && ($env{'form.suppurl'})) { |
$supplementalflag = 1; |
$supplementalflag = 1; |
if (&unescape($env{'form.suppurl'}) =~ m{^/adm/$cdom/$cnum/\d+/exttools?$}) { |
if (&unescape($env{'form.suppurl'}) =~ m{^/adm/$cdom/$cnum/\d+/ext\.tool$}) { |
$type = 'tool'; |
$type = 'tool'; |
} |
} |
} |
} |
Line 79 sub handler {
|
Line 79 sub handler {
|
if ($symb ne $env{'form.symb'}) { |
if ($symb ne $env{'form.symb'}) { |
$env{'form.symb'} = $symb; |
$env{'form.symb'} = $symb; |
} |
} |
if ($url =~ m{/adm/$cdom/$cnum/\d+/exttools?$}) { |
if ($url =~ m{/adm/$cdom/$cnum/\d+/ext\.tool$}) { |
$type = 'tool'; |
$type = 'tool'; |
} |
} |
} |
} |
Line 146 sub process_changes {
|
Line 146 sub process_changes {
|
$oldtitle = &unescape($env{'form.title'}); |
$oldtitle = &unescape($env{'form.title'}); |
$container = 'sequence'; |
$container = 'sequence'; |
$supplementalflag = 1; |
$supplementalflag = 1; |
if ($oldurl =~ m{^/adm/$cdom/$cnum/\d+/exttools?$}) { |
if ($oldurl =~ m{^/adm/$cdom/$cnum/\d+/ext\.tool$}) { |
$type = 'tool'; |
$type = 'tool'; |
} else { |
} else { |
$type = 'ext'; |
$type = 'ext'; |
Line 157 sub process_changes {
|
Line 157 sub process_changes {
|
if ($env{'form.importdetail'}) { |
if ($env{'form.importdetail'}) { |
($newtitle,$newurl,$newidx) = |
($newtitle,$newurl,$newidx) = |
map {&unescape($_)} split(/\=/,$env{'form.importdetail'}); |
map {&unescape($_)} split(/\=/,$env{'form.importdetail'}); |
if ($newurl =~ m{^(/adm/$cdom/$cnum/(\d+)/exttools?)\:?(.*)$}) { |
if ($newurl =~ m{^(/adm/$cdom/$cnum/(\d+)/ext\.tool)\:?(.*)$}) { |
$newurl = $1; |
$newurl = $1; |
$marker = $2; |
$marker = $2; |
$args = $3; |
$args = $3; |
Line 418 sub extedit_form {
|
Line 418 sub extedit_form {
|
} else { |
} else { |
$orig_title = $lt{'et'}; |
$orig_title = $lt{'et'}; |
$save = $lt{'at'}; |
$save = $lt{'at'}; |
$orig_url = "/adm/$cdom/$cnum/new/exttool"; |
$orig_url = "/adm/$cdom/$cnum/new/ext\.tool"; |
} |
} |
$pathitem .= '<br />'; |
$pathitem .= '<br />'; |
} |
} |
Line 429 sub extedit_form {
|
Line 429 sub extedit_form {
|
my $class = 'LC_nobreak'; |
my $class = 'LC_nobreak'; |
if ($residx) { |
if ($residx) { |
$class = 'LC_docs_ext_edit LC_nobreak'; |
$class = 'LC_docs_ext_edit LC_nobreak'; |
if ($orig_url =~ m{^/adm/$cdom/$cnum/(\d+)/exttools?$}) { |
if ($orig_url =~ m{^/adm/$cdom/$cnum/(\d+)/ext\.tool$}) { |
my $marker = $1; |
my $marker = $1; |
my %toolhash=&Apache::lonnet::dump('exttool_'.$marker,$cdom,$cnum); |
my %toolhash=&Apache::lonnet::dump('exttool_'.$marker,$cdom,$cnum); |
if ($toolhash{'id'}) { |
if ($toolhash{'id'}) { |
Line 912 function updateExttool(caller,form,suppl
|
Line 912 function updateExttool(caller,form,suppl
|
document.getElementById(windiv).style.display = 'none'; |
document.getElementById(windiv).style.display = 'none'; |
} |
} |
if (document.getElementById(linktextdiv)) { |
if (document.getElementById(linktextdiv)) { |
if ((ltitoolsLink[j]) && (ltitoolsTarget[j] == 'window')) { |
if (ltitoolsLink[j]) { |
document.getElementById(linktextdiv).style.display = 'inline'; |
document.getElementById(linktextdiv).style.display = 'inline'; |
} else { |
} else { |
document.getElementById(linktextdiv).style.display = 'none'; |
document.getElementById(linktextdiv).style.display = 'none'; |
} |
} |
} |
} |
if (document.getElementById(linktextinput)) { |
if (document.getElementById(linktextinput)) { |
if ((ltitoolsLink[j]) && (ltitoolsTarget[j] == 'window')) { |
if (ltitoolsLink[j]) { |
document.getElementById(linktextinput).value = ltitoolsLinkDef[j]; |
document.getElementById(linktextinput).value = ltitoolsLinkDef[j]; |
} else { |
} else { |
document.getElementById(linktextinput).value = ''; |
document.getElementById(linktextinput).value = ''; |
} |
} |
} |
} |
if (document.getElementById(explanationdiv)) { |
if (document.getElementById(explanationdiv)) { |
if ((ltitoolsExplain[j]) && (ltitoolsTarget[j] == 'window')) { |
if (ltitoolsExplain[j]) { |
document.getElementById(explanationdiv).style.display = 'inline'; |
document.getElementById(explanationdiv).style.display = 'inline'; |
} else { |
} else { |
document.getElementById(explanationdiv).style.display = 'none'; |
document.getElementById(explanationdiv).style.display = 'none'; |
} |
} |
} |
} |
if (document.getElementById(explanationinput)) { |
if (document.getElementById(explanationinput)) { |
if ((ltitoolsExplain[j]) && (ltitoolsTarget[j] == 'window')) { |
if (ltitoolsExplain[j]) { |
document.getElementById(explanationinput).value = ltitoolsExplainDef[j]; |
document.getElementById(explanationinput).value = ltitoolsExplainDef[j]; |
} else { |
} else { |
document.getElementById(explananationinput).value = ''; |
document.getElementById(explananationinput).value = ''; |
Line 967 function updateTooldim(form,dimendiv,win
|
Line 967 function updateTooldim(form,dimendiv,win
|
for (var i=0; i<form.exttooltarget.length; i++) { |
for (var i=0; i<form.exttooltarget.length; i++) { |
if (form.exttooltarget[i].checked) { |
if (form.exttooltarget[i].checked) { |
var dimen = 'none'; |
var dimen = 'none'; |
var linkconf = 'none'; |
var linkconf = 'none'; |
if (form.exttooltarget[i].value == 'window') { |
if (form.exttooltarget[i].value == 'window') { |
dimen = 'block'; |
dimen = 'block'; |
linkconf = 'block'; |
linkconf = 'block'; |
Line 990 function updateTooldim(form,dimendiv,win
|
Line 990 function updateTooldim(form,dimendiv,win
|
} |
} |
if (document.getElementById(windiv)) { |
if (document.getElementById(windiv)) { |
document.getElementById(windiv).style.display = linkconf; |
document.getElementById(windiv).style.display = linkconf; |
} |
} |
break; |
break; |
} |
} |
} |
} |