| 
      
            Lines 12-19
          $(document).ready(function() {
      
      
        Link Here
      
     | 
  
        
          | 12 | 
              $("span.match_regex_prefix" ).hide(); | 
          12 | 
              $("span.match_regex_prefix" ).hide(); | 
        
        
          | 13 | 
              $("span.match_regex_suffix" ).hide(); | 
          13 | 
              $("span.match_regex_suffix" ).hide(); | 
        
        
          | 14 | 
           | 
          14 | 
           | 
        
          
            
              | 15 | 
                  $("#conditional_field,#from_field").change(function(){ | 
              15 | 
                  $("#add_action").submit(function(){ | 
            
            
              | 16 | 
                      updateWarnings(); // For 3.14.x branches only, if bug 11319 is not pushed into  | 
              16 | 
                      var action = $("#action").val(); | 
            
            
               | 
               | 
              17 | 
                      if ( action == 'move_field' || action == 'copy_field' ) { | 
            
            
              | 18 | 
                          if ( $("#from_subfield").val().length != $("#to_subfield").val().length ) { | 
            
            
              | 19 | 
                              alert(_("Both subfield values should be filled or empty.")); | 
            
            
              | 20 | 
                              return false;  | 
            
            
              | 21 | 
                          }  | 
            
            
              | 22 | 
                          if ( $("#to_field").val().length <= 0 ) { | 
            
            
              | 23 | 
                              alert(_("The destination should be filled.")); | 
            
            
              | 24 | 
                              return false;  | 
            
            
              | 25 | 
                          }  | 
            
            
              | 26 | 
                      }  | 
            
            
              | 27 | 
                      if ( action == 'update_field' ) { | 
            
            
              | 28 | 
                          if ( $("#from_subfield").val().length <= 0 ) { | 
            
            
              | 29 | 
                              alert(_("The source subfield should be filled for update.")); | 
            
            
              | 30 | 
                              return false;  | 
            
            
              | 31 | 
                          }  | 
            
            
              | 32 | 
                      }  | 
            
            
              | 33 | 
                      if ( $("#from_field").val().length <= 0 ) { | 
            
            
              | 34 | 
                          alert(_("The source field should be filled.")); | 
            
            
              | 35 | 
                          return false;  | 
            
            
              | 36 | 
                      }  | 
            
        
          | 17 | 
              });  | 
          37 | 
              });  | 
        
        
          | 18 | 
          });  | 
          38 | 
          });  | 
        
        
          | 19 | 
          //]]>  | 
          39 | 
          //]]>  | 
        
  
    | 
      
            Lines 431-444
          function setSelectByValue( selectId, value ) {
      
      
        Link Here
      
     | 
  
        
          | 431 | 
                                      </select>  | 
          451 | 
                                      </select>  | 
        
        
          | 432 | 
                                  </span>  | 
          452 | 
                                  </span>  | 
        
        
          | 433 | 
           | 
          453 | 
           | 
        
          
            
              | 434 | 
                                      field(s) <input type="text" name="from_field" id="from_field" size="3" maxlength="3" /> <input type="text" name="from_subfield" id="from_subfield" size="1" maxlength="1" />  | 
              454 | 
                                      field(s) <input type="text" name="from_field" id="from_field" size="3" maxlength="3" /> <input type="text" name="from_subfield" id="from_subfield" size="1" maxlength="1" title="let blank for the entire field" />  | 
            
        
          | 435 | 
           | 
          455 | 
           | 
        
        
          | 436 | 
                                  <span name="with_value_block" id="with_value_block" style="display:none;">  | 
          456 | 
                                  <span name="with_value_block" id="with_value_block" style="display:none;">  | 
        
        
          | 437 | 
                                      with value <input type="text" name="field_value" id="field_value" />  | 
          457 | 
                                      with value <input type="text" name="field_value" id="field_value" />  | 
        
        
          | 438 | 
                                  </span>  | 
          458 | 
                                  </span>  | 
        
        
          | 439 | 
           | 
          459 | 
           | 
        
        
          | 440 | 
                                  <span name="to_field_block" id="to_field_block" style="display:none;">  | 
          460 | 
                                  <span name="to_field_block" id="to_field_block" style="display:none;">  | 
        
          
            
              | 441 | 
                                          to field <input type="text" name="to_field" id="to_field" size="3" maxlength="3" /> <input type="text" name="to_subfield" id="to_subfield" size="1" maxlength="1" />  | 
              461 | 
                                          to field <input type="text" name="to_field" id="to_field" size="3" maxlength="3" /> <input type="text" name="to_subfield" id="to_subfield" size="1" maxlength="1" title="let blank for the entire field" />  | 
            
        
          | 442 | 
           | 
          462 | 
           | 
        
        
          | 443 | 
                                      <span name="to_field_regex_block" id="to_field_regex_block">  | 
          463 | 
                                      <span name="to_field_regex_block" id="to_field_regex_block">  | 
        
        
          | 444 | 
                                          <sup>  | 
          464 | 
                                          <sup>  | 
        
            
              | 445 | 
              -   | 
               | 
               |