Diff for /loncom/homework/structuretags.pm between versions 1.482 and 1.486

version 1.482, 2010/12/31 00:58:10 version 1.486, 2011/01/18 21:45:32
Line 128  sub homework_js { Line 128  sub homework_js {
            &setmode_javascript().             &setmode_javascript().
  <<'JS';   <<'JS';
 <script type="text/javascript">  <script type="text/javascript">
   // <![CDATA[
 function setSubmittedPart (part) {  function setSubmittedPart (part) {
    this.document.lonhomework.submitted.value="part_"+part;     this.document.lonhomework.submitted.value="part_"+part;
 }  }
Line 145  function image_response_click (which, e) Line 146  function image_response_click (which, e)
     input_element.value = click;      input_element.value = click;
     img_element.src = '/adm/randomlabel.png?token='+token+'&clickdata='+click;      img_element.src = '/adm/randomlabel.png?token='+token+'&clickdata='+click;
 }  }
   // ]]>
 </script>  </script>
 JS  JS
 }  }
Line 153  JS Line 154  JS
 sub setmode_javascript {  sub setmode_javascript {
     return <<"ENDSCRIPT";      return <<"ENDSCRIPT";
 <script type="text/javascript">  <script type="text/javascript">
   // <![CDATA[
 function setmode(form,probmode) {  function setmode(form,probmode) {
     form.problemmode.value = probmode;      form.problemmode.value = probmode;
     form.submit();      form.submit();
 }  }
   // ]]>
 </script>  </script>
 ENDSCRIPT  ENDSCRIPT
 }  }
   
 sub file_delchk_js {  sub file_delchk_js {
     my $delfilewarn = &mt('You have indicated you wish to delete some files previously included for submission.').'\\n'.      my $delfilewarn = &mt('You have indicated you wish to remove some files previously included in your submission.').'\\n'.
                           &mt('Deleted files will not be graded.').' '.                        &mt('Continue submission with these files removed?');
                           &mt('Submit Answer?');  
     return <<"ENDSCRIPT";      return <<"ENDSCRIPT";
 <script type="text/javascript">  <script type="text/javascript">
   // <![CDATA[
 function file_deletion_check(formname) {  function file_deletion_check(formname) {
     var elemnum = formname.elements.length;      var elemnum = formname.elements.length;
     if (elemnum == 0) {      if (elemnum == 0) {
Line 199  function file_deletion_check(formname) { Line 202  function file_deletion_check(formname) {
         return true;          return true;
     }      }
 }  }
   // ]]>
 </script>  </script>
 ENDSCRIPT  ENDSCRIPT
 }  }
Line 2265  sub start_simpleeditbutton { Line 2269  sub start_simpleeditbutton {
 #              .&mt('Note: it can take up to 10 minutes for changes to take effect for all users.')  #              .&mt('Note: it can take up to 10 minutes for changes to take effect for all users.')
 #              .&Apache::loncommon::help_open_topic('Caching')  #              .&Apache::loncommon::help_open_topic('Caching')
 #              .'</p>';  #              .'</p>';
         $result.=&Apache::lonhtmlcommon::start_funclist()          $result.=&Apache::loncommon::head_subbox(
                    &Apache::lonhtmlcommon::start_funclist()
                 .&Apache::lonhtmlcommon::add_item_funclist(                  .&Apache::lonhtmlcommon::add_item_funclist(
                      '<a href="'.$url.'/smpedit?symb='.&escape($symb).'">'                       '<a href="'.$url.'/smpedit?symb='.&escape($symb).'">'
                     .&mt('Edit').'</a>')                      .&mt('Edit').'</a>')
                 .&Apache::lonhtmlcommon::end_funclist();                  .&Apache::lonhtmlcommon::end_funclist());
   
     }      }
     return $result;      return $result;

Removed from v.1.482  
changed lines
  Added in v.1.486


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