[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /interface domainprefs.pm

raeburn raeburn@source.lon-capa.org
Sun, 23 Aug 2009 17:36:54 -0000


raeburn		Sun Aug 23 17:36:54 2009 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/interface	domainprefs.pm 
  Log:
  - Backport 1.109.
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.102.2.2 loncom/interface/domainprefs.pm:1.102.2.3
--- loncom/interface/domainprefs.pm:1.102.2.2	Sun Aug 23 12:40:50 2009
+++ loncom/interface/domainprefs.pm	Sun Aug 23 17:36:53 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.102.2.2 2009/08/23 12:40:50 raeburn Exp $
+# $Id: domainprefs.pm,v 1.102.2.3 2009/08/23 17:36:53 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1348,15 +1348,15 @@
     $datatable .= '<tr'.$css_class.'>'.
                   '<td>'.&mt('LON-CAPA Advanced Users').' ';
     if ($context eq 'requestcourses') {
-        $datatable .= &mt('(overrides affiliation, if set)');
-    } else {
-        $datatable .= &mt('(overrides affiliation, if checked)');
-    }
-    $datatable .= '</td>'.
-    if ($context eq 'requestcourses') {
-        $datatable .= '<table><tr>';
+        $datatable .= &mt('(overrides affiliation, if set)').
+                      '</td>'.
+                      '<td class="LC_left_item">'.
+                      '<table><tr>';
     } else {
-        $datatable .= '<br />';
+        $datatable .= &mt('(overrides affiliation, if checked)').
+                      '</td>'.
+                      '<td class="LC_left_item" colspan="2">'.
+                      '<br />';
     }
     my %advcell;
     foreach my $item (@usertools) {
@@ -2663,6 +2663,7 @@
     }
     $output = <<"ENDSCRIPT";
 <script type="text/javascript">
+// <![CDATA[
 function reorderCats(form,parent,item,idx) {
     var changedVal;
 $jstext
@@ -2719,6 +2720,7 @@
     }
     return;
 }
+// ]]>
 </script>
 
 ENDSCRIPT