From 2f2f15b7aabe19e45dad9bddb7eb7f4394aa1e21 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 04 Sep 2006 08:26:30 -0400
Subject: [PATCH] Little improvements for message parsing and encoding

---
 skins/default/includes/ldapscripts.html |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/skins/default/includes/ldapscripts.html b/skins/default/includes/ldapscripts.html
index 0dfda6c..e58fd4d 100644
--- a/skins/default/includes/ldapscripts.html
+++ b/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 {

--
Gitblit v1.9.1