[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
droeschl
droeschl@source.lon-capa.org
Mon, 06 Jul 2009 17:48:30 -0000
droeschl Mon Jul 6 17:48:30 2009 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
- Added <hr> to separate LC_nav_bar from content.
- Usage of inhibit_menu_check() to check the inhibitmenu state.
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.454 loncom/homework/structuretags.pm:1.455
--- loncom/homework/structuretags.pm:1.454 Mon Jul 6 17:10:10 2009
+++ loncom/homework/structuretags.pm Mon Jul 6 17:48:30 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.454 2009/07/06 17:10:10 droeschl Exp $
+# $Id: structuretags.pm,v 1.455 2009/07/06 17:48:30 droeschl Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -259,7 +259,8 @@
my ($symb,undef,undef,undef,$publicuser)= &Apache::lonnet::whichuser();
if ($symb eq '' && !$publicuser) {
my $help = &Apache::loncommon::help_open_topic("Ambiguous_Reference");
- $help=&mt("Browsing resource, all submissions are temporary.")."<br />";
+ $help="<hr/><p class='LC_info'>".&mt("Browsing resource, all submissions
+ are temporary.")."</p>";
$page_start .= $help;
}
}
@@ -271,8 +272,8 @@
my $form_tag_start;
if (!defined($found{'form'})) {
$form_tag_start='<form name="lonhomework" enctype="multipart/form-data" method="post" action="';
- my $uri = &Apache::lonenc::check_encrypt($env{'request.uri'});
- $uri .= '?inhibitmenu=yes' if $env{'form.inhibitmenu'};
+ my $uri = Apache::loncommon::inhibit_menu_check(
+ &Apache::lonenc::check_encrypt($env{'request.uri'}));
$form_tag_start.=$uri.'" ';
if ($target eq 'edit') {
$form_tag_start.=&Apache::edit::form_change_detection();