--- rat/lonratedt.pm 2006/05/30 17:15:10 1.78 +++ rat/lonratedt.pm 2006/09/12 22:13:12 1.83 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Edit Handler for RAT Maps # -# $Id: lonratedt.pm,v 1.78 2006/05/30 17:15:10 www Exp $ +# $Id: lonratedt.pm,v 1.83 2006/09/12 22:13:12 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -649,7 +649,8 @@ sub getparameter { # ----------------------------------------------------------------- Edit script sub editscript { my $mode=shift; - my $resurl=&Apache::loncommon::lastresurl(); + my $resurl= + &Apache::loncommon::escape_single(&Apache::loncommon::lastresurl()); return(< 'New Title', 'se' => 'Search', 'im' => 'Import', + 'bk' => 'Import Bookmarks', 'vi' => 'View', 'lm' => 'Load Map', 'ds' => 'Discard Selected', @@ -1100,10 +1102,9 @@ sub smpedt { ENDJS my $start_page = &Apache::loncommon::start_page(undef,$js). - &Apache::loncommon::help_open_menu('', - 'Sequence_Simple_Editor_Creation', + &Apache::loncommon::help_open_menu('Sequence_Simple_Editor_Creation', 'Sequence_Simple_Editor_Creation', - '',6,'RAT'); + 6,'RAT'); my $end_page = &Apache::loncommon::end_page(); $r->print(< +"javascript:impfortarget.value=1;groupopen(0,1,1);" value="$lt{'bk'}"> + $lt{'as'}
@@ -1195,7 +1198,7 @@ sub viewmap { my ($r,$url,$adv,$errtext)=@_; $r->print( &Apache::loncommon::start_page('Edit Content of a Map'). - &Apache::loncommon::help_open_menu('','','','',6,'RAT'). + &Apache::loncommon::help_open_menu('','',6,'RAT'). &buttons($adv)); if ($errtext) { $r->print($errtext.'
');