Diff for /loncom/interface/lonconfigsettings.pm between versions 1.17 and 1.19

version 1.17, 2011/01/13 22:49:47 version 1.19, 2011/06/05 12:59:47
Line 35  use Apache::lonnet; Line 35  use Apache::lonnet;
 use Apache::loncommon();  use Apache::loncommon();
 use Apache::lonhtmlcommon();  use Apache::lonhtmlcommon();
 use Apache::lonlocal;  use Apache::lonlocal;
 use Apache::lonparmset();  
   
 sub print_header {  sub print_header {
     my ($r,$phase,$context,$jscript) = @_;      my ($r,$phase,$context,$jscript) = @_;
Line 120  $jscript Line 119  $jscript
     }      }
     $r->print(&Apache::loncommon::start_page($pagetitle,$js,$additem));      $r->print(&Apache::loncommon::start_page($pagetitle,$js,$additem));
     $r->print(&Apache::lonhtmlcommon::breadcrumbs($brcrumtitle));      $r->print(&Apache::lonhtmlcommon::breadcrumbs($brcrumtitle));
     &Apache::lonparmset::startSettingsScreen($r,'coursepref');  
     $r->print('      $r->print('
 <form name="parmform" action="">  <form name="parmform" action="">
 <input type="hidden" name="pres_marker" />  <input type="hidden" name="pres_marker" />
Line 161  sub print_footer { Line 159  sub print_footer {
                   $button_text.'" onclick='.$onclick.' /></p>');                    $button_text.'" onclick='.$onclick.' /></p>');
     }      }
     if ($phase eq 'process') {      if ($phase eq 'process') {
         $r->print('</form>');          $r->print('</form>'.&Apache::loncommon::end_page());
         &Apache::lonparmset::endSettingsScreen($r);  
         $r->print(&Apache::loncommon::end_page());  
     }      }
     return;      return;
 }  }
Line 286  sub display_settings { Line 282  sub display_settings {
         }          }
         $r->print('</form>');          $r->print('</form>');
     }      }
     if ($context eq 'course') {  
     $r->print('  
 <script type="text/javascript">  
  $(document).ready(function(){  
  $("#prefs").accordion({  
  autoHeight: false  
  });  
  if ($(".LC_nested tr.advanced").get(0)) {  
  $(".LC_nested tr.advanced").each(function() {  
  $(this).hide();  
  p = $(this).parents("div.ui-accordion-content")  
  if (p.find(".LC_advanced_toggle").length) {  
  return;  
  }  
  p.prepend("<span class=\'LC_advanced_toggle\'><input type=\"checkbox\"/>Show advanced options</span>");  
  });  
  $(".LC_advanced_toggle input").change(function() {  
  if($(this).is(":checked")) {  
  $(this).parents("div.ui-accordion-content").find("tr.advanced").fadeIn("normal");  
  } else {  
  $(this).parents("div.ui-accordion-content").find("tr.advanced").fadeOut("normal");  
  }  
  });  
  }  
  });  
 </script>  
 ');  
     }  
     $r->print(&Apache::loncommon::end_page());      $r->print(&Apache::loncommon::end_page());
     return;      return;
 }  }

Removed from v.1.17  
changed lines
  Added in v.1.19


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>