Diff for /loncom/interface/loncommon.pm between versions 1.568 and 1.569

version 1.568, 2007/08/24 18:41:06 version 1.569, 2007/08/25 19:52:29
Line 5642  sub user_picker { Line 5642  sub user_picker {
                     'instd'     => 'in institutional directory',                      'instd'     => 'in institutional directory',
                     'exact'     => 'is',                      'exact'     => 'is',
                     'contains'  => 'contains',                      'contains'  => 'contains',
                       'begins'    => 'begins with',
                                        );                                         );
     my $domform = &select_dom_form($currdom,'srchdomain',1,1);      my $domform = &select_dom_form($currdom,'srchdomain',1,1);
     my $srchinsel = ' <select name="srchin">';      my $srchinsel = ' <select name="srchin">';
Line 5677  sub user_picker { Line 5678  sub user_picker {
     $srchbysel .= "\n  </select>\n";      $srchbysel .= "\n  </select>\n";
   
     my $srchtypesel = ' <select name="srchtype">';      my $srchtypesel = ' <select name="srchtype">';
     foreach my $option ('exact','contains') {      foreach my $option ('exact','begins','contains') {
         if ($curr_selected{'srchtype'} eq $option) {          if ($curr_selected{'srchtype'} eq $option) {
             $srchtypesel .= '              $srchtypesel .= '
    <option value="'.$option.'" selected="selected">'.$lt{$option}.'</option>';     <option value="'.$option.'" selected="selected">'.$lt{$option}.'</option>';
Line 5746  function validateEntry() { Line 5747  function validateEntry() {
         msg += "You must include some text to search for.\\n";          msg += "You must include some text to search for.\\n";
     }      }
   
       if (srchtype== 'begins') {
           if (srchterm.length < 2) {
               checkok = 0;
               msg += "The text you are searching for must contain at least two characters when using a 'begins' type search.\\n";
           }
       }
   
     if (srchtype== 'contains') {      if (srchtype== 'contains') {
         if (srchterm.length < 3) {          if (srchterm.length < 3) {
             checkok = 0;              checkok = 0;

Removed from v.1.568  
changed lines
  Added in v.1.569


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