[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /homework optionresponse.pm

raeburn raeburn at source.lon-capa.org
Wed Sep 14 14:30:07 EDT 2016


raeburn		Wed Sep 14 18:30:07 2016 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/homework	optionresponse.pm 
  Log:
  - For 2.11
    - Backport 1.196, 1.197
  
  
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.195.2.1 loncom/homework/optionresponse.pm:1.195.2.2
--- loncom/homework/optionresponse.pm:1.195.2.1	Tue Apr 21 23:36:43 2015
+++ loncom/homework/optionresponse.pm	Wed Sep 14 18:30:06 2016
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.195.2.1 2015/04/21 23:36:43 raeburn Exp $
+# $Id: optionresponse.pm,v 1.195.2.2 2016/09/14 18:30:06 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -51,7 +51,8 @@
   undef(%Apache::response::foilnames);
   if ($target eq 'edit') {
     $result.=&Apache::edit::start_table($token)
-       .'<tr><td><span class="LC_nobreak">'.&mt('Multiple Option Response Question').'</span> '
+       .'<tr><td><span class="LC_nobreak">'.&Apache::loncommon::insert_folding_button().' '
+       .&mt('Multiple Option Response Question').'</span> '
        .&Apache::loncommon::help_open_topic('Option_Response_Problems')."</td>"
        .'<td><span class="LC_nobreak">'.&mt('Delete?').' '
        .&Apache::edit::deletelist($target,$token)
@@ -127,8 +128,8 @@
         maxcheck => 'Enter maximum number students may check (e.g., 3)',
         mincheck => 'Enter minimum number students need to check (e.g., 1)',
     );
-    $result.= (<<ENDTABLE);
-      <tr><td>$lt{'sel'}</td>
+    $result.= sprintf(<<ENDTABLE, &Apache::loncommon::insert_folding_button());
+      <tr><td>%s $lt{'sel'}</td>
         <td>
 	  $lt{'add'} <input type="text" name="$Apache::lonxml::curdepth.options" />
         </td>




More information about the LON-CAPA-cvs mailing list