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

Contents of /contributions/modules/ldap_integration/ldapauth.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.ldapauth = function(context) {
7 if(window.location.href.search(/add$/) > 0) {
8 $('#edit-test').hide();
9 }
10 $('#edit-test').click(function(event) {
11 $('#test-message').hide();
12 $('#test-spinner').show();
13 var url = window.location.href + '/test';
14 $.post(url, { binddn: $('#edit-binddn').val(), bindpw: bindpw = $('#edit-bindpw').val(), bindpw_clear: bindpw_clear = $('#edit-bindpw-clear').val() },
15 function(data){
16 $('#test-spinner').hide();
17 $('#test-message').show().removeClass('status error').addClass(data.status ? 'status' : 'error').html(data.message);
18 }, "json");
19 return false;
20 });
21 }
22

  ViewVC Help
Powered by ViewVC 1.1.2