diff options
| author | justinrandell <justinrandell@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-01-08 23:23:26 +0000 |
|---|---|---|
| committer | justinrandell <justinrandell@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-01-08 23:23:26 +0000 |
| commit | be238ce5aad5c5a828cc616bf085dc9d5cb763e9 (patch) | |
| tree | 3171537a1923c0994cd60564c694e17be06c3cd3 /roundcubemail/skins/default/includes/ldapscripts.html | |
| parent | 6c48b0a7434e602e33519cc2c46957ba0495477e (diff) | |
fixed bug with field choice dropdown not appearing when only one ldap server is configured - thanks to Pieter Hoekstra for the report
git-svn-id: https://svn.roundcube.net/trunk@98 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/skins/default/includes/ldapscripts.html')
| -rw-r--r-- | roundcubemail/skins/default/includes/ldapscripts.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/roundcubemail/skins/default/includes/ldapscripts.html b/roundcubemail/skins/default/includes/ldapscripts.html index 0dfda6cb7..4b911e718 100644 --- a/roundcubemail/skins/default/includes/ldapscripts.html +++ b/roundcubemail/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 |
