--- loncom/homework/daxepage.pm 2024/04/14 17:12:28 1.15
+++ loncom/homework/daxepage.pm 2024/04/19 03:48:23 1.17
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Page with Daxe on the left side and the preview on the right side
#
-# $Id: daxepage.pm,v 1.15 2024/04/14 17:12:28 raeburn Exp $
+# $Id: daxepage.pm,v 1.17 2024/04/19 03:48:23 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -60,7 +60,6 @@ sub handler {
$is_supp = 1;
$supp_path = &escape(&HTML::Entities::decode($Apache::lonnet::env{'form.folderpath'}));
$supp_title = &escape(&HTML::Entities::decode($Apache::lonnet::env{'form.title'}));
- &Apache::lonhtmlcommon::clear_breadcrumbs();
}
$is_course_doc = 1;
$Apache::lonnet::env{'form.forceedit'} = 1;
@@ -85,7 +84,11 @@ sub handler {
if ($is_not_assess) {
delete($editors{'xml'});
$editors{'edit'} = 1;
+ $Apache::lonnet::env{'form.editmode'} = 'daxe';
+ } else {
+ $Apache::lonnet::env{'form.problemmode'} = 'daxe';
}
+ &Apache::lonhtmlcommon::clear_breadcrumbs();
my %lt = &Apache::lonlocal::texthash(
'noif' => 'No iframe support.',
'show' => 'Show content in pop-up window',
@@ -139,7 +142,7 @@ sub handler {
$editheader .= ' | '.$other.': '.
'';
if ($is_not_assess) {
- $editheader .= ''."\n".
+ $editheader .= ''."\n".
''."\n";
} else {