From 16ddbf4f624c5682466b39e4e9efd14fe5c743ad Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 17 Oct 2007 02:21:48 +0000 Subject: Remove " X" from innertext of select items since this is our way of telling which fields need parameters. --- packages/openbgpd/openbgpd.inc | 2 ++ packages/openbgpd/openbgpd_neighbors.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'packages') 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 @@ Paramaters paramaters - Neighbor settings. Items ending with a X require a value. Leave the items without a trailing X's value blank. + Neighbor settings. select -- cgit v1.2.3