thomascube
2006-09-04 2f2f15b7aabe19e45dad9bddb7eb7f4394aa1e21
skins/default/includes/ldapscripts.html
@@ -1,15 +1,16 @@
<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
@@ -33,8 +34,8 @@
    // 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 {