Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F224509
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/skins/default/includes/ldapscripts.html b/skins/default/includes/ldapscripts.html
deleted file mode 100644
index e58fd4d15..000000000
--- a/skins/default/includes/ldapscripts.html
+++ /dev/null
@@ -1,74 +0,0 @@
-<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);
-}
-
-/**
- * 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
- */
-function updateLdapSearchFields(element) {
-
- // get the search fields select element
- var search_fields = document.getElementById('rcfmd_ldap_public_search_field');
-
- // get rid of the current options for the select
- for (i = search_fields.length - 1; i>=0; i--)
- search_fields.remove(i);
-
- // get the array containing this servers search fields
- var server_fields = rcmail.env[element.value + '_search_fields'];
-
- // add a new option for each of the possible search fields for the selected server
- for (i = 0; i < server_fields.length; i++) {
-
- // 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][0];
- new_option.value = server_fields[i][1];
-
- // standards compliant browsers
- try {
- search_fields.add(new_option, null);
- }
- // for the standards challenged one...
- catch(e) {
- search_fields.add(new_option);
- }
- } else {
- // ok, last member of array, so check the value of fuzzy_search
- var fuzzy_search = server_fields[i];
- var search_check_box = document.getElementById('rcmfd_ldap_public_search_type');
-
- if (fuzzy_search == 'fuzzy') {
- // we should enable the check box
- if (search_check_box.disabled)
- search_check_box.disabled = false;
-
- // make sure the checkbox is unchecked
- if (search_check_box.checked)
- search_check_box.checked = false;
-
- } else {
- // we should disable the check box
- if (!search_check_box.disabled)
- search_check_box.disabled = true;
-
- // check the checkbox (just a visual clue for the user)
- if (!search_check_box.checked)
- search_check_box.checked = true;
- }
- }
- }
-}
-</script>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Mar 1, 10:26 AM (11 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
166694
Default Alt Text
(2 KB)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment