Diff for /loncom/interface/lonconfigsettings.pm between versions 1.9 and 1.11

version 1.9, 2010/01/07 18:21:25 version 1.11, 2010/01/27 13:08:01
Line 212  sub make_changes { Line 212  sub make_changes {
     }      }
     if ($context eq 'course') {      if ($context eq 'course') {
         if ($numchanged) {          if ($numchanged) {
             $r->print(&Apache::courseprefs::store_changes($dom,$confname,$prefs_order,\@actions,              my $message = &Apache::courseprefs::store_changes($dom,$confname,$prefs_order,\@actions,
                                                           $prefs,$values,\%changes,$crstype));                                                            $prefs,$values,\%changes,$crstype);
               $r->print(&Apache::loncommon::confirmwrapper($message));
         } else {          } else {
             if ($crstype eq 'Community') {              if ($crstype eq 'Community') {
                 $r->print(&mt("No changes made to community configuration."));                  $r->print(&Apache::loncommon::confirmwrapper(&mt("No changes made to community configuration.")));
             } else {              } else {
                 $r->print(&mt("No changes made to course configuration."));                  $r->print(&Apache::loncommon::confirmwrapper(&mt("No changes made to course configuration.")));
             }              }
         }          }
         if (keys(%disallowed) > 0) {          if (keys(%disallowed) > 0) {
Line 341  sub display_settings { Line 342  sub display_settings {
  $("#prefs").accordion({   $("#prefs").accordion({
  autoHeight: false   autoHeight: false
  });   });
  $("#prefs td.LC_left_item").css("text-align", "right");   if ($(".LC_nested tr.advanced").get(0)) {
  $("#prefs td.LC_left_item").css("width", "40%");   $(".LC_nested tr.advanced").each(function() {
  $("#prefs td.LC_left_item").css("padding-right", "10px");   $(this).hide();
  $("#prefs td.LC_right_item").css("text-align", "left");   p = $(this).parents("div.ui-accordion-content")
  $("#prefs td.LC_right_item").css("width", "60%");   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>  </script>
 ');  ');

Removed from v.1.9  
changed lines
  Added in v.1.11


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