| 
      
            Lines 40-52
          
      
      
        Link Here
      
     | 
  
        
          | 40 | 
                                              <div class="search-term-row">  | 
          40 | 
                                              <div class="search-term-row">  | 
        
        
          | 41 | 
                                                  <div class="search-term-input">  | 
          41 | 
                                                  <div class="search-term-input">  | 
        
        
          | 42 | 
                                                      [% IF ( expanded_options ) %]  | 
          42 | 
                                                      [% IF ( expanded_options ) %]  | 
        
            
              | 43 | 
                                                              [% IF ( !loop.first ) %]  | 
               | 
               | 
            
        
          | 44 | 
                                                              <select name="op" class="form-control">  | 
          43 | 
                                                              <select name="op" class="form-control">  | 
        
        
          | 45 | 
                                                                  <option value="and" selected="selected">and</option>  | 
          44 | 
                                                                  <option value="and" selected="selected">and</option>  | 
        
        
          | 46 | 
                                                                  <option value="or">or</option>  | 
          45 | 
                                                                  <option value="or">or</option>  | 
        
        
          | 47 | 
                                                                  <option value="not">not</option>  | 
          46 | 
                                                                  <option value="not">not</option>  | 
        
        
          | 48 | 
                                                              </select>  | 
          47 | 
                                                              </select>  | 
        
            
              | 49 | 
                                                              [% END %]  | 
               | 
               | 
            
        
          | 50 | 
                                                      [% ELSE %]  | 
          48 | 
                                                      [% ELSE %]  | 
        
        
          | 51 | 
                                                          <label for="search-field_[% loop.index | html %]">  | 
          49 | 
                                                          <label for="search-field_[% loop.index | html %]">  | 
        
        
          | 52 | 
                                                              [% IF loop.index == 0 %]  | 
          50 | 
                                                              [% IF loop.index == 0 %]  | 
        
  
    | 
      
            Lines 118-131
          
      
      
        Link Here
      
     | 
  
        
          | 118 | 
                                                  </div> <!-- .search-term-input -->  | 
          116 | 
                                                  </div> <!-- .search-term-input -->  | 
        
        
          | 119 | 
                                                  [% IF ( expanded_options ) %]  | 
          117 | 
                                                  [% IF ( expanded_options ) %]  | 
        
        
          | 120 | 
                                                      <div class="search-term-input">  | 
          118 | 
                                                      <div class="search-term-input">  | 
        
            
              | 121 | 
                                                              [% IF ( !loop.first ) %]  | 
               | 
               | 
            
        
          | 122 | 
                                                              <a class="ButtonPlus" title="Add another field" href="#">  | 
          119 | 
                                                              <a class="ButtonPlus" title="Add another field" href="#">  | 
        
        
          | 123 | 
                                                                  <i class="fa fa-plus-square" aria-hidden="true"></i>  | 
          120 | 
                                                                  <i class="fa fa-plus-square" aria-hidden="true"></i>  | 
        
        
          | 124 | 
                                                              </a>  | 
          121 | 
                                                              </a>  | 
        
        
          | 125 | 
                                                              <a class="ButtonLess" title="Remove field" href="#">  | 
          122 | 
                                                              <a class="ButtonLess" title="Remove field" href="#">  | 
        
        
          | 126 | 
                                                                  <i class="fa fa-minus-square" aria-hidden="true"></i>  | 
          123 | 
                                                                  <i class="fa fa-minus-square" aria-hidden="true"></i>  | 
        
        
          | 127 | 
                                                              </a>  | 
          124 | 
                                                              </a>  | 
        
            
              | 128 | 
                                                              [% END %]  | 
               | 
               | 
            
        
          | 129 | 
                                                      </div> <!-- .search-term-input -->  | 
          125 | 
                                                      </div> <!-- .search-term-input -->  | 
        
        
          | 130 | 
                                                  [% END %]  | 
          126 | 
                                                  [% END %]  | 
        
        
          | 131 | 
                                              </div> <!-- /.search-term-row -->  | 
          127 | 
                                              </div> <!-- /.search-term-row -->  | 
        
  
    | 
      
            Lines 458-464
          
      
      
        Link Here
      
     | 
  
        
          | 458 | 
          $(document).ready(function() { | 
          454 | 
          $(document).ready(function() { | 
        
        
          | 459 | 
              $('#advsearches').tabs(); | 
          455 | 
              $('#advsearches').tabs(); | 
        
        
          | 460 | 
              jQuery.cookie.json = true;  | 
          456 | 
              jQuery.cookie.json = true;  | 
        
          
            
              | 461 | 
                  //$('#advsearches > ul').tabs(); | 
              457 | 
               | 
            
            
               | 
               | 
              458 | 
                  $('.search-term-row .search-term-input select[name="op"]').first().prop("disabled",true).hide(); | 
            
        
          | 462 | 
           | 
          459 | 
           | 
        
        
          | 463 | 
              [% IF ( ReturnToSearch ) %]  | 
          460 | 
              [% IF ( ReturnToSearch ) %]  | 
        
        
          | 464 | 
                  if (form_serialized = jQuery.cookie("form_serialized")) { | 
          461 | 
                  if (form_serialized = jQuery.cookie("form_serialized")) { | 
        
  
    | 
      
            Lines 521-536
          $(document).ready(function() {
      
      
        Link Here
      
     | 
  
        
          | 521 | 
                  $('.ButtonLess').show(); | 
          518 | 
                  $('.ButtonLess').show(); | 
        
        
          | 522 | 
                  var thisLine = $(this).parent().parent();  | 
          519 | 
                  var thisLine = $(this).parent().parent();  | 
        
        
          | 523 | 
                  var newLine = thisLine.clone();  | 
          520 | 
                  var newLine = thisLine.clone();  | 
        
            
               | 
               | 
              521 | 
                      $(newLine).find('.search-term-input select[name="op"]').first().prop("disabled",false).show(); | 
            
        
          | 524 | 
                  newLine.find('input').val(''); | 
          522 | 
                  newLine.find('input').val(''); | 
        
        
          | 525 | 
                  thisLine.after(newLine);  | 
          523 | 
                  thisLine.after(newLine);  | 
        
        
          | 526 | 
              });  | 
          524 | 
              });  | 
        
        
          | 527 | 
           | 
          525 | 
           | 
        
        
          | 528 | 
              $(document).on("click", '.ButtonLess', function(e) { | 
          526 | 
              $(document).on("click", '.ButtonLess', function(e) { | 
        
        
          | 529 | 
                  e.preventDefault();  | 
          527 | 
                  e.preventDefault();  | 
        
          
            
              | 530 | 
                      if($(this).parent().parent().siblings().length <= 3 ) { | 
              528 | 
                      if($(this).parent().parent().siblings().length < 2 ) { | 
            
        
          | 531 | 
                     $('.ButtonLess').hide(); | 
          529 | 
                     $('.ButtonLess').hide(); | 
        
        
          | 532 | 
                  }  | 
          530 | 
                  }  | 
        
        
          | 533 | 
                  $(this).parent().parent().remove();  | 
          531 | 
                  $(this).parent().parent().remove();  | 
        
            
               | 
               | 
              532 | 
                      $('.search-term-row .search-term-input select[name="op"]').first().prop("disabled",true).hide(); | 
            
        
          | 534 | 
              });  | 
          533 | 
              });  | 
        
        
          | 535 | 
           | 
          534 | 
           | 
        
        
          | 536 | 
          </script>  | 
          535 | 
          </script>  | 
        
            
              | 537 | 
              -   | 
               | 
               |