Changeset 7834

Show
Ignore:
Timestamp:
06/20/09 07:30:39 (1 year ago)
Author:
p_lindheimer
Message:

clear all localnet/netmask fields upon getting data back from auto-configure so that reminents are not left in if they have several boxes open

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.6/sipsettings/page.sipsettings.php

    r7833 r7834  
    246246    <td> 
    247247      <input type="text" id="localnet_0" name="localnet_0" class="localnet validate=ip" value="<?php echo $localnet_0 ?>" tabindex="<?php echo ++$tabindex;?>"> / 
    248       <input type="text" id="netmask_0" name="netmask_0" class="validate-netmask" value="<?php echo $netmask_0 ?>" tabindex="<?php echo ++$tabindex;?>"> 
     248      <input type="text" id="netmask_0" name="netmask_0" class="netmask validate-netmask" value="<?php echo $netmask_0 ?>" tabindex="<?php echo ++$tabindex;?>"> 
    249249    </td> 
    250250  </tr> 
     
    266266      $tabindex++; 
    267267      echo <<< END 
    268       <input type="text" id="netmask_$idx" name="netmask_$idx" class="validate-netmask" value="{$$var_netmask}" tabindex="$tabindex"> 
     268      <input type="text" id="netmask_$idx" name="netmask_$idx" class="netmask validate-netmask" value="{$$var_netmask}" tabindex="$tabindex"> 
    269269    </td> 
    270270  </tr> 
     
    781781      success: function(data) { 
    782782        if (data.status == 'success') { 
     783          $('.netmask').attr("value",""); 
     784          $('.localnet').attr("value",""); 
    783785          $('#externip_val').attr("value",data.externip); 
    784           $('#externhost_val').attr("value",data.externhost); 
    785786          /*  Iterate through each localnet:netmask pair. Put them into any fields on the form 
    786787           *  until we have no more, than create new ones 
     
    884885    <td>\ 
    885886      <input type="text" id="localnet_'+idx+'" name="localnet_'+idx+'" class="localnet" value="'+localnet+'" tabindex="'+tabindex+'"> /\ 
    886       <input type="text" id="netmask_'+idx+'" name="netmask_'+idx+'" value="'+netmask+'" tabindex="'+tabindexp+'">\ 
     887      <input type="text" id="netmask_'+idx+'" name="netmask_'+idx+'" class="netmask validate-netmask" value="'+netmask+'" tabindex="'+tabindexp+'">\ 
    887888    </td>\ 
    888889  </tr>\