aboutsummaryrefslogtreecommitdiffstats
path: root/packages/openbgpd
diff options
context:
space:
mode:
Diffstat (limited to 'packages/openbgpd')
-rw-r--r--packages/openbgpd/openbgpd.inc2
-rw-r--r--packages/openbgpd/openbgpd_neighbors.xml2
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>