diff options
author | svncommit <devs@roundcube.net> | 2006-01-08 23:23:26 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2006-01-08 23:23:26 +0000 |
commit | 9d2c0d496713fef847415616146ae8e6868ba242 (patch) | |
tree | e14c073eacd98e29f5f783a14ee5b5b06621cbeb /skins | |
parent | c0da982d9e11bb80ec9948e89ccdb55b90bc77e3 (diff) |
fixed bug with field choice dropdown not appearing when only one ldap server is configured - thanks to Pieter Hoekstra for the report
Diffstat (limited to 'skins')
-rw-r--r-- | skins/default/includes/ldapscripts.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/skins/default/includes/ldapscripts.html b/skins/default/includes/ldapscripts.html index 0dfda6cb7..4b911e718 100644 --- a/skins/default/includes/ldapscripts.html +++ b/skins/default/includes/ldapscripts.html @@ -1,16 +1,17 @@ <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 * this function is triggered by an onchange event in the server select box |