- $undo $htmlerror $deps_button $dragmath_button
+ $undo $deps_button $dragmath_button $htmlerror
$spelllink
@@ -1768,34 +1783,6 @@ ENDFOOTER
return ($editfooter,$add_to_onload,$add_to_onresize);
}
-sub setmode_javascript {
- return <<"ENDSCRIPT";
-
-ENDSCRIPT
-}
-
-sub seteditor_javascript {
- return <<"ENDSCRIPT";
-
-ENDSCRIPT
-}
-
sub get_target {
my $viewgrades=&Apache::lonnet::allowed('vgr',$env{'request.course.id'});
if ( $env{'request.state'} eq 'published') {
@@ -1945,7 +1932,7 @@ ENDNOTFOUND
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},
['editmode']);
}
- if ((!$env{'form.editmode'}) ||
+ if ((!$env{'form.editmode'}) ||
($env{'form.problemmode'} eq 'saveview') ||
($env{'form.problemmode'} eq 'discard')) {
if ($filetype eq 'html' || $filetype eq 'sty') {
@@ -2015,7 +2002,7 @@ ENDNOTFOUND
# Edit action? Insert editing commands
#
unless (($env{'request.state'} eq 'published') || ($inhibit_menu)) {
- if (($env{'form.editmode'}) &&
+ if (($env{'form.editmode'}) &&
(!($env{'form.problemmode'} eq 'saveview')) &&
(!($env{'form.problemmode'} eq 'discard'))) {
my ($displayfile,$url,$symb,$itemtitle,$action);