Diff for /loncom/interface/lonmodifycourse.pm between versions 1.90 and 1.93

version 1.90, 2017/01/05 16:17:11 version 1.93, 2018/03/23 01:01:21
Line 289  function gochoose(cname,cdom,cdesc) { Line 289  function gochoose(cname,cdom,cdesc) {
                         document.courselist.submit();                          document.courselist.submit();
                     } else {                      } else {
                         var str = '';                          var str = '';
                           \$("#LC_choose_adhoc").empty();
                         for (var i=0; i<data.roles.length; i++) {                          for (var i=0; i<data.roles.length; i++) {
                             \$("<label><input type='radio' value='"+data.roles[i].name+"' name='LC_get_role' id='LC_get_role_"+i+"' />"+data.roles[i].desc+"</label><span>&nbsp;&nbsp;</span>")                              \$("<label><input type='radio' value='"+data.roles[i].name+"' name='LC_get_role' id='LC_get_role_"+i+"' />"+data.roles[i].desc+"</label><span>&nbsp;&nbsp;</span>")
                             .appendTo("#LC_choose_adhoc");                              .appendTo("#LC_choose_adhoc");
                         }                          }
                           \$( "#LC_adhocrole_chooser" ).toggle( true );
                         \$( "#LC_get_role_0").prop("checked", true);                          \$( "#LC_get_role_0").prop("checked", true);
                         \$( "#LC_adhocrole_chooser" ).dialog({ autoOpen: false });                          \$( "#LC_adhocrole_chooser" ).dialog({ autoOpen: false });
                         \$( "#LC_adhocrole_chooser" ).dialog("open");                          \$( "#LC_adhocrole_chooser" ).dialog("open");
Line 338  function gochoose(cname,cdom,cdesc) { Line 340  function gochoose(cname,cdom,cdesc) {
 // ]]>  // ]]>
 </script>  </script>
   
 <div id="LC_adhocrole_chooser" title="$lt{'title'}">  <div id="LC_adhocrole_chooser" title="$lt{'title'}" style="display:none">
   <p>$lt{'preamble'}</p>    <p>$lt{'preamble'}</p>
   <form name="LChelpdeskadhoc" id="LChelpdeskpicker" action="">    <form name="LChelpdeskadhoc" id="LChelpdeskpicker" action="">
     <div id="LC_choose_adhoc">      <div id="LC_choose_adhoc">
Line 1110  sub print_course_modification_page { Line 1112  sub print_course_modification_page {
         $r->print(&Apache::lonhtmlcommon::row_title(          $r->print(&Apache::lonhtmlcommon::row_title(
                       &Apache::loncommon::help_open_topic('Modify_Course_Instcode').                        &Apache::loncommon::help_open_topic('Modify_Course_Instcode').
                       '&nbsp;'.&mt('Course Code'))."\n".                        '&nbsp;'.&mt('Course Code'))."\n".
                   '<input type="text" size="15" name="coursecode" value="'.$enrollvar{'coursecode'}.'"'.$disabled.'/>'.                    '<input type="text" size="15" name="coursecode" value="'.$enrollvar{'coursecode'}.'"'.$disabled.' />'.
                   &Apache::lonhtmlcommon::row_closure());                    &Apache::lonhtmlcommon::row_closure());
         if (($crstype eq 'Course') && (&showcredits($cdom))) {          if (($crstype eq 'Course') && (&showcredits($cdom))) {
             $r->print(&Apache::lonhtmlcommon::row_title(              $r->print(&Apache::lonhtmlcommon::row_title(
Line 1275  sub gather_authenitems { Line 1277  sub gather_authenitems {
             $curr_authtype = 'int';              $curr_authtype = 'int';
         } elsif ($enrollvar->{'authtype'} eq 'localauth' ) {          } elsif ($enrollvar->{'authtype'} eq 'localauth' ) {
             $curr_authtype = 'loc';              $curr_authtype = 'loc';
           } elsif ($enrollvar->{'authtype'} eq 'lti' ) {
               $curr_authtype = 'lti';
         }          }
     }      }
     unless ($curr_authtype eq '') {      unless ($curr_authtype eq '') {
Line 1295  sub gather_authenitems { Line 1299  sub gather_authenitems {
     $authform{'krb'} = &Apache::loncommon::authform_kerberos(%param);      $authform{'krb'} = &Apache::loncommon::authform_kerberos(%param);
     $authform{'int'} = &Apache::loncommon::authform_internal(%param);      $authform{'int'} = &Apache::loncommon::authform_internal(%param);
     $authform{'loc'} = &Apache::loncommon::authform_local(%param);      $authform{'loc'} = &Apache::loncommon::authform_local(%param);
     foreach my $item ('krb','int','loc') {      $authform{'lti'} = &Apache::loncommon::authform_lti(%param);
       foreach my $item ('krb','int','loc','lti') {
         if ($authform{$item} ne '') {          if ($authform{$item} ne '') {
             $authenitems .= $authform{$item}.'<br />';              $authenitems .= $authform{$item}.'<br />';
         }          }
Line 1361  sub modify_course { Line 1366  sub modify_course {
             if ((defined($env{'form.locarg'})) && ($env{'form.locarg'})) {              if ((defined($env{'form.locarg'})) && ($env{'form.locarg'})) {
                 $newattr{'autharg'} = $env{'form.locarg'};                  $newattr{'autharg'} = $env{'form.locarg'};
             }              }
           } elsif ($env{'form.login'} eq 'lti') {
               $newattr{'authtype'} = 'lti';
         }          }
         if ( $newattr{'authtype'}=~ /^krb/) {          if ( $newattr{'authtype'}=~ /^krb/) {
             if ($newattr{'autharg'}  eq '') {              if ($newattr{'autharg'}  eq '') {

Removed from v.1.90  
changed lines
  Added in v.1.93


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