aboutsummaryrefslogtreecommitdiff
path: root/views/default/openid_client/js.php
blob: 175577719ab85f1bef38958df7e1c856ceed6569 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
 * OpenID JavaScript
 */

?>

// OpenID toggle
elgg.register_hook_handler('init', 'system', function() {
	$(".openid-client-toggle").click(function(event) {
		$("#openid-client-login-form").slideDown();

		var provider_input = $("#openid-client-login-form input[name=openid_provider]");
		provider_input.attr('value', $(this).attr('rel'));

		event.preventDefault();
	});
});