[LON-CAPA-cvs] cvs: loncom /interface courseclassifier.pm

raeburn raeburn at source.lon-capa.org
Fri May 22 12:00:55 EDT 2015


raeburn		Fri May 22 16:00:55 2015 EDT

  Modified files:              
    /loncom/interface	courseclassifier.pm 
  Log:
  - Last dropdown list element in linked institutional code dropdowns needs
    to include the class, if one was passed to &build_instcode_selectors().  
  
  
Index: loncom/interface/courseclassifier.pm
diff -u loncom/interface/courseclassifier.pm:1.22 loncom/interface/courseclassifier.pm:1.23
--- loncom/interface/courseclassifier.pm:1.22	Thu May 21 23:26:34 2015
+++ loncom/interface/courseclassifier.pm	Fri May 22 16:00:55 2015
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utilities for classifying courses based on institutional code
 #
-# $Id: courseclassifier.pm,v 1.22 2015/05/21 23:26:34 raeburn Exp $
+# $Id: courseclassifier.pm,v 1.23 2015/05/22 16:00:55 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -616,7 +616,11 @@
             $output .= '</select></td>';
         }
         $output .= '<td align="center">'.$codetitles->[$lasttitle-1].'<br />'."\n".
-                   '<select name="'.$standardnames[$lasttitle-1].'">'."\n".
+                   '<select name="'.$standardnames[$lasttitle-1].'"';
+        if ($class) {
+            $output .= ' class="'.$class.'"';
+        }
+        $output .= '>'."\n".
                    '<option value="0">'.&mt('All')."\n".
                    '</option>'."\n".'</select>'."\n".
                    '</td></tr></table>'."\n";




More information about the LON-CAPA-cvs mailing list