--- loncom/interface/lonmenu.pm 2006/09/05 17:36:09 1.202.2.1 +++ loncom/interface/lonmenu.pm 2006/08/14 09:11:55 1.203 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.202.2.1 2006/09/05 17:36:09 albertel Exp $ +# $Id: lonmenu.pm,v 1.203 2006/08/14 09:11:55 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -52,6 +52,8 @@ use vars qw(@desklines $readdesk); my @inlineremote; + + # ================================================================ Little texts sub initlittle { @@ -471,8 +473,8 @@ s&7&1&del.gif&delete[_1]&resource[_2]&go s&7&2&prt.gif&prepare[_1]&printout[_1]&gocstr('/adm/printout','/~$uname/$cleandisfn')&Prepare a printable document ENDMENUITEMS } - } elsif (defined($env{'request.course.id'}) && - $env{'request.symb'} ne '') { + } elsif ( defined($env{'request.course.id'}) && + $env{'request.symb'} ne '' ) { $menuitems=(< // BEGIN LON-CAPA Internal @@ -1070,16 +1080,13 @@ sub utilityfunctions { 'add_entries' => { 'onload' => 'javascript:document.goannotate.submit();'}}); - my $end_page_annotate = - &Apache::loncommon::end_page({'js_ready' => 1}); - my $start_page_bookmark = &Apache::loncommon::start_page('Bookmarks',undef, {'only_body' => 1, 'js_ready' => 1, 'bgcolor' => '#BBBBBB',}); - my $end_page_bookmark = + my $end_page = &Apache::loncommon::end_page({'js_ready' => 1}); return (<" +"" +"<\\/form>" - +'$end_page_annotate'); + +'$end_page'); annotator.document.close(); } @@ -1221,7 +1228,7 @@ function set_bookmark() { +"value='Save' /> <\\/center><\\/td>" +"<\\/tr><\\/table><\\/form><\\/center>" - +'$end_page_bookmark' ); + +'$end_page' ); bmquery.document.close(); }