diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-10-17 02:21:48 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-10-17 02:21:48 +0000 |
commit | 16ddbf4f624c5682466b39e4e9efd14fe5c743ad (patch) | |
tree | ed4b967a18365eaeea4a595dcbd967c1afabeac9 /packages/openbgpd | |
parent | 0857a5219fc220a8720e939135378ea591fc7652 (diff) | |
download | pfsense-packages-16ddbf4f624c5682466b39e4e9efd14fe5c743ad.tar.gz pfsense-packages-16ddbf4f624c5682466b39e4e9efd14fe5c743ad.tar.bz2 pfsense-packages-16ddbf4f624c5682466b39e4e9efd14fe5c743ad.zip |
Remove " X" from innertext of select items since this is our way of telling which fields need parameters.
Diffstat (limited to 'packages/openbgpd')
-rw-r--r-- | packages/openbgpd/openbgpd.inc | 2 | ||||
-rw-r--r-- | packages/openbgpd/openbgpd_neighbors.xml | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/packages/openbgpd/openbgpd.inc b/packages/openbgpd/openbgpd.inc index 8d45d966..7434b622 100644 --- a/packages/openbgpd/openbgpd.inc +++ b/packages/openbgpd/openbgpd.inc @@ -144,11 +144,13 @@ function grey_out_value_boxes() { var length = fieldvalue.length; length = length -2; var last_two = fieldvalue.substring(length); + var without_last_two = fieldvalue.substring(0,length); if( \$('parmvalue' + x) ) { if(last_two != ' X') { \$('parmvalue' + x).value = ''; \$('parmvalue' + x).disabled = true; } else { + $('paramaters' + x).options[$('paramaters' + x).selectedIndex].text = without_last_two; \$('parmvalue' + x).disabled = false; } } diff --git a/packages/openbgpd/openbgpd_neighbors.xml b/packages/openbgpd/openbgpd_neighbors.xml index 959dde03..07f01cac 100644 --- a/packages/openbgpd/openbgpd_neighbors.xml +++ b/packages/openbgpd/openbgpd_neighbors.xml @@ -109,7 +109,7 @@ <rowhelperfield> <fielddescr>Paramaters</fielddescr> <fieldname>paramaters</fieldname> - <description>Neighbor settings. Items ending with a X require a value. Leave the items without a trailing X's value blank.</description> + <description>Neighbor settings.</description> <type>select</type> <options> <option><name>Announce all</name><value>announce all</value></option> |