2011-08-08 21:32:54 +00:00
|
|
|
$(document).ready(function(){
|
2011-08-14 14:12:27 +00:00
|
|
|
$('#openidform #identity').blur(function(event){
|
2011-08-08 21:32:54 +00:00
|
|
|
event.preventDefault();
|
|
|
|
var post = $( "#openidform" ).serialize();
|
|
|
|
$.post( 'ajax/openid.php', post, function(data){
|
|
|
|
if( data.status == "success" ){
|
|
|
|
}else{
|
|
|
|
alert('error while setting OpenID');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
2011-08-14 14:12:27 +00:00
|
|
|
|
|
|
|
// reset value when edited, workaround because of .select() not working with disabled inputs
|
|
|
|
$('#openid').focus(function(event){
|
|
|
|
openidValue = $('#openid').val();
|
|
|
|
});
|
|
|
|
$('#openid').blur(function(event){
|
|
|
|
$('#openid').val(openidValue);
|
|
|
|
});
|
2011-08-08 21:32:54 +00:00
|
|
|
});
|