diff options
Diffstat (limited to 'packages/openbgpd/openbgpd.inc')
-rw-r--r-- | packages/openbgpd/openbgpd.inc | 2 |
1 files changed, 2 insertions, 0 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; } } |