version 1.14, 2017/02/19 00:15:51
|
version 1.15, 2017/03/08 02:51:08
|
Line 543 ENDFORM
|
Line 543 ENDFORM
|
} |
} |
|
|
sub display_editor { |
sub display_editor { |
my ($url,$folderpath,$symb,$idx,$type,$cdom,$cnum) = @_; |
my ($url,$folderpath,$symb,$idx,$type,$cdom,$cnum,$hostname) = @_; |
my ($residx,$supplementalflag,$title,$pathitem,$output,$js,$navmap); |
my ($residx,$supplementalflag,$title,$pathitem,$output,$js,$navmap); |
if ($folderpath =~ /^supplemental/) { |
if ($folderpath =~ /^supplemental/) { |
$supplementalflag = 1; |
$supplementalflag = 1; |
Line 563 sub display_editor {
|
Line 563 sub display_editor {
|
} |
} |
$js = &Apache::lonhtmlcommon::scripttag(&extedit_javascript()); |
$js = &Apache::lonhtmlcommon::scripttag(&extedit_javascript()); |
my $args = { 'force_register' => $env{'form.register'} }; |
my $args = { 'force_register' => $env{'form.register'} }; |
|
if ($hostname) { |
|
$args->{'hostname'} = $hostname; |
|
} |
my $description = 'External Resource Editor'; |
my $description = 'External Resource Editor'; |
if ($type eq 'tool') { |
if ($type eq 'tool') { |
$description = 'External Tool Editor'; |
$description = 'External Tool Editor'; |