| | |
| | | <script type="text/javascript"> |
| | | var ldap_server_select = document.getElementById('rcfmd_ldap_public_servers'); |
| | | |
| | | if (ldap_server_select) { |
| | | // attach event to ldap server drop down |
| | | ldap_server_select.onchange = function() { |
| | | updateLdapSearchFields(this); |
| | | return false; |
| | | } |
| | | |
| | | // update the fields on page load |
| | | updateLdapSearchFields(ldap_server_select); |
| | | } |
| | | |
| | | // update the fields on page load |
| | | updateLdapSearchFields(ldap_server_select); |
| | | |
| | | /** |
| | | * function to change the attributes of the ldap server search fields select box |
| | |
| | | // the last array value is for fuzzy search, so skip that one |
| | | if (i < (server_fields.length - 1)) { |
| | | var new_option = document.createElement('option'); |
| | | new_option.text = server_fields[i]; |
| | | new_option.value = server_fields[i]; |
| | | new_option.text = server_fields[i][0]; |
| | | new_option.value = server_fields[i][1]; |
| | | |
| | | // standards compliant browsers |
| | | try { |