version 1.62, 2022/03/12 21:24:17
|
version 1.66, 2022/08/28 02:41:29
|
Line 180 ENDJS
|
Line 180 ENDJS
|
} |
} |
$linkprot_check .= <<ENDJS; |
$linkprot_check .= <<ENDJS; |
if (posscheck) { |
if (posscheck) { |
|
uncheckLinkProtMakeVis('visible','$num'); |
document.display.elements['linkprot_secret_$num'].type = 'password'; |
document.display.elements['linkprot_secret_$num'].type = 'password'; |
} |
} |
|
|
Line 198 $intargjs
|
Line 199 $intargjs
|
ENDJS |
ENDJS |
} |
} |
$linkprot_check .= <<ENDJS; |
$linkprot_check .= <<ENDJS; |
|
uncheckLinkProtMakeVis('visible','$num'); |
document.display.elements['linkprot_secret_$num'].type = 'password'; |
document.display.elements['linkprot_secret_$num'].type = 'password'; |
|
|
ENDJS |
ENDJS |
Line 209 ENDJS
|
Line 211 ENDJS
|
$linkprot_check .= <<ENDJS |
$linkprot_check .= <<ENDJS |
secretinput = document.display.elements['linkprot_secret_add'].value; |
secretinput = document.display.elements['linkprot_secret_add'].value; |
if (document.display.elements['linkprot_add'].checked) { |
if (document.display.elements['linkprot_add'].checked) { |
$intargjs |
$intargjs |
} |
} |
|
|
ENDJS |
ENDJS |
} |
} |
$linkprot_check .= <<ENDJS; |
$linkprot_check .= <<ENDJS; |
|
uncheckLinkProtMakeVis('visible','add'); |
document.display.elements['linkprot_secret_add'].type = 'password'; |
document.display.elements['linkprot_secret_add'].type = 'password'; |
|
|
ENDJS |
ENDJS |
Line 424 $jscript
|
Line 427 $jscript
|
$onload .= "toggleLinkProt(document.display,'$num','secret');"; |
$onload .= "toggleLinkProt(document.display,'$num','secret');"; |
} |
} |
} |
} |
|
$onload .= "toggleLinkProtExtra(document.display,'returnurl','divurlparam','1','inline-block','$num');"; |
if ($ltiauth) { |
if ($ltiauth) { |
$onload .= "toggleLinkProtReqUser(document.display,'requser','optional','1','block','$num');". |
$onload .= "toggleLinkProtExtra(document.display,'requser','optional','1','block','$num');". |
"toggleLinkProtReqUser(document.display,'mapuser','userfield','other','inline-block','$num');"; |
"toggleLinkProtExtra(document.display,'mapuser','userfield','other','inline-block','$num');"; |
} |
} |
if ($ishome) { |
if ($ishome) { |
$onload .= "uncheckLinkProtMakeVis('visible','$num');"; |
$onload .= "uncheckLinkProtMakeVis('visible','$num');"; |
Line 435 $jscript
|
Line 439 $jscript
|
} |
} |
} |
} |
} |
} |
|
if (grep(/^appearance$/,@actions)) { |
|
$onload .= "toggleExtRes();" |
|
} |
if ($onload) { |
if ($onload) { |
my %loaditems = ( |
my %loaditems = ( |
'onload' => $onload, |
'onload' => $onload, |
Line 536 sub make_changes {
|
Line 543 sub make_changes {
|
$errors = |
$errors = |
&Apache::courseprefs::process_changes($dom,$confname,$item,$values, |
&Apache::courseprefs::process_changes($dom,$confname,$item,$values, |
$prefs->{$item},$changes{$item}, |
$prefs->{$item},$changes{$item}, |
$allitems,\%disallowed,$crstype); |
$allitems,\%disallowed,$crstype, |
|
\%lastact); |
if (keys(%{$changes{$item}}) > 0) { |
if (keys(%{$changes{$item}}) > 0) { |
$numchanged ++; |
$numchanged ++; |
} |
} |