--- loncom/homework/edit.pm 2014/11/28 18:23:03 1.152 +++ loncom/homework/edit.pm 2015/01/19 15:35:53 1.153 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # edit mode helpers # -# $Id: edit.pm,v 1.152 2014/11/28 18:23:03 raeburn Exp $ +# $Id: edit.pm,v 1.153 2015/01/19 15:35:53 goltermann Exp $ # # Copyright Michigan State University Board of Trustees # @@ -164,12 +164,9 @@ sub tag_start { $description=&mt(&Apache::lonxml::description($token)); if (!$description) { $description="<$tag>"; } } - $result.= &start_table($token)."$description - ".&mt('Delete?').' '. - &deletelist($target,$token) - ." - ". - &insertlist($target,$token); + $result.= &start_table($token)."".&Apache::loncommon::insert_folding_button(). + " $description".&mt('Delete?')." ".&deletelist($target,$token). + "".&insertlist($target,$token); #". # &movebuttons($target,$token). # "\n"; @@ -232,7 +229,10 @@ sub end_table { return $result; } -sub start_spanning_row { return '';} +sub start_spanning_row { + return ''; +} sub start_row { return ''; } sub end_row { return ''; } @@ -788,12 +788,14 @@ sub element_change_detection { sub submit_ask_anyway { my ($extra_action) = @_; - return ' onclick="still_ask=true;'.$extra_action.'" '; + my $resource = $env{'request.ambiguous'}; + return ' onclick="saveScrollPosition(\''.$resource.'\');still_ask=true;'.$extra_action.';" '; } sub submit_dont_ask { my ($extra_action) = @_; - return ' onclick="is_submit=true;'.$extra_action.'" '; + my $resource = $env{'request.ambiguous'}; + return ' onclick="saveScrollPosition(\''.$resource.'\');is_submit=true;'.$extra_action.';" '; } sub js_update_linknum { 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.