version 1.349, 2015/02/21 21:53:34
|
version 1.351, 2015/04/16 10:13:29
|
Line 1021 sub editxmlmode {
|
Line 1021 sub editxmlmode {
|
unless ($env{'environment.nocodemirror'}) { |
unless ($env{'environment.nocodemirror'}) { |
# dropdown menues |
# dropdown menues |
$result .= '<ol class="LC_primary_menu LC_floatleft">'. |
$result .= '<ol class="LC_primary_menu LC_floatleft">'. |
&Apache::lonmenu::create_submenu("#", "", &mt("Insert Menu"), &Apache::structuretags::insert_menu_datastructure(),"").'</ol>'; |
&Apache::lonmenu::create_submenu("#", "", &mt("Templates"), |
|
&Apache::structuretags::insert_menu_datastructure(), |
|
"").'</ol>'; |
} |
} |
$result .= '<ol class="LC_primary_menu LC_floatleft">'. |
$result .= '<ol class="LC_primary_menu LC_floatleft">'; |
Apache::lonmenu::create_submenu("#", "", &mt("Help"), &Apache::structuretags::helpmenu_datastructure(),"").'</ol>'; |
|
$result.="</div>"; |
$result .= Apache::lonmenu::create_submenu("#", "", |
|
&mt("Help") . ' <img src="/adm/help/help.png" alt="' . &mt("Help") . |
|
'" style="vertical-align:text-bottom; height: auto; margin:0; "/>', |
|
&Apache::structuretags::helpmenu_datastructure(),""); |
|
|
|
$result.="</ol></div>"; |
|
|
$result.='<hr style="clear:both;visibility:hidden" /></div></div>'.&Apache::lonxml::message_location(). |
$result.='<hr style="clear:both;visibility:hidden" /></div></div>'.&Apache::lonxml::message_location(). |
&Apache::loncommon::xmleditor_js(). |
&Apache::loncommon::xmleditor_js(). |
Line 1343 sub handler {
|
Line 1350 sub handler {
|
my $file=&Apache::lonnet::filelocation("",$request->uri); |
my $file=&Apache::lonnet::filelocation("",$request->uri); |
|
|
#check if we know where we are |
#check if we know where we are |
if ($env{'request.course.fn'} && !&Apache::lonnet::symbread()) { |
if ($env{'request.course.fn'} && !&Apache::lonnet::symbread('','',1,1)) { |
# if we are browsing we might not be able to know where we are |
# if we are browsing we might not be able to know where we are |
if ($Apache::lonhomework::browse ne 'F' && |
if ($Apache::lonhomework::browse ne 'F' && |
$env{'request.state'} ne "construct") { |
$env{'request.state'} ne "construct") { |