/[drupal]/contributions/modules/ldap_integration/ldapdata.admin.js
ViewVC logotype

Contents of /contributions/modules/ldap_integration/ldapdata.admin.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Tue Jul 28 14:03:05 2009 UTC (3 months, 4 weeks ago) by miglius
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA2, DRUPAL-6--1-0-BETA1, HEAD
File MIME type: text/javascript
ldap_integration:

Changelog:
 * Moved AD comma escaping regexp from the groups module to the LDAPInterface search;
 * Implemented AJAX testing of the admin DN and password;
1 // $Id$
2
3 /**
4 * Behaviours are bound to the Drupal namespace.
5 */
6 Drupal.behaviors.ldapdata = function(context) {
7 $('#edit-test').click(function(event) {
8 $('#test-message').hide();
9 $('#test-spinner').show();
10 var url = window.location.href + '/test';
11 $.post(url, { binddn: $('#edit-ldapdata-binddn').val(), bindpw: bindpw = $('#edit-ldapdata-bindpw').val(), bindpw_clear: bindpw_clear = $('#edit-ldapdata-bindpw-clear').val() },
12 function(data){
13 $('#test-spinner').hide();
14 $('#test-message').show().removeClass('status error').addClass(data.status ? 'status' : 'error').html(data.message);
15 }, "json");
16 return false;
17 });
18 }
19

  ViewVC Help
Powered by ViewVC 1.1.2