Diff for /loncom/homework/structuretags.pm between versions 1.531 and 1.534

version 1.531, 2015/03/07 23:13:09 version 1.534, 2015/04/10 12:01:28
Line 287  function setSubmittedPart (part,prefix) Line 287  function setSubmittedPart (part,prefix)
     }      }
 }  }
   
   function disableAutoComplete (id) {
       var field = document.getElementById(id);
       if (field != null && field != undefined){
           if ('autocomplete' in field) {
               field.autocomplete = "off";
           } else {
               field.setAttribute("autocomplete", "off");
           }
       }
   }
   
 function image_response_click (which, e) {  function image_response_click (which, e) {
     init_geometry();      init_geometry();
     if (!e) { e = window.event; } //IE      if (!e) { e = window.event; } //IE
Line 807  sub template_dropdown_datastructure { Line 818  sub template_dropdown_datastructure {
             close(FH);              close(FH);
   
  if ($code ne '') {   if ($code ne '') {
  my $href = 'javascript:insertText(\'' . &convert_for_js(&HTML::Entities::encode($code)) . '\')';                  my $href = 'javascript:insertText(\'' . &convert_for_js(&HTML::Entities::encode($code,'<>&"')) . '\')';
  my $currItem = [$href, $title, undef];   my $currItem = [$href, $title, undef];
  push @{$catItems}, $currItem;   push @{$catItems}, $currItem;
  }   }

Removed from v.1.531  
changed lines
  Added in v.1.534


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