nextcloud/apps/user_openid/js/settings.js

21 lines
555 B
JavaScript
Raw Normal View History

$(document).ready(function(){
2011-08-14 18:12:27 +04:00
$('#openidform #identity').blur(function(event){
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 18:12:27 +04: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);
});
});