--- loncom/homework/structuretags.pm 2015/12/07 08:11:55 1.542
+++ loncom/homework/structuretags.pm 2016/01/06 18:08:04 1.544
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.542 2015/12/07 08:11:55 raeburn Exp $
+# $Id: structuretags.pm,v 1.544 2016/01/06 18:08:04 damieng Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -980,8 +980,7 @@ $show_all
'onclick="javascript:setmode(this.form,'."'editxml'".')" />';
if ($env{'browser.type'} ne 'explorer' || $env{'browser.version'} > 9) {
my $uri = $env{'request.uri'};
- my $daxeurl = '/adm/daxe/daxe.html?config=config/loncapa_config.xml&file=/daxeopen'.$uri.
- '&save=/daxesave';
+ my $daxeurl = '/daxepage'.$uri;
$result .= '';
}
@@ -1732,7 +1731,10 @@ sub start_problem {
'';
# create a page header and exit
if ($env{'request.state'} eq "construct") {
- unless ($env{'form.inhibitmenu'} eq 'yes') {
+ if ($env{'form.inhibitmenu'} eq 'yes') {
+ # error messages can be useful in any case
+ $result.= &Apache::lonxml::message_location();
+ } else {
$result.= &problem_web_to_edit_header($env{'form.rndseed'});
}
if ($Apache::lonhomework::type eq 'practice') {