Changeset 7834
- Timestamp:
- 06/20/09 10:30:39 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.6/sipsettings/page.sipsettings.php
r7833 r7834 246 246 <td> 247 247 <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;?>"> 249 249 </td> 250 250 </tr> … … 266 266 $tabindex++; 267 267 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"> 269 269 </td> 270 270 </tr> … … 781 781 success: function(data) { 782 782 if (data.status == 'success') { 783 $('.netmask').attr("value",""); 784 $('.localnet').attr("value",""); 783 785 $('#externip_val').attr("value",data.externip); 784 $('#externhost_val').attr("value",data.externhost);785 786 /* Iterate through each localnet:netmask pair. Put them into any fields on the form 786 787 * until we have no more, than create new ones … … 884 885 <td>\ 885 886 <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+'">\ 887 888 </td>\ 888 889 </tr>\
