|
|
|
@ -1,20 +1,10 @@ |
|
|
|
$(document).ready(function(){ |
|
|
|
$('#openidform #identity').blur(function(event){ |
|
|
|
event.preventDefault(); |
|
|
|
OC.msg.startSaving('#openidform .msg'); |
|
|
|
var post = $( "#openidform" ).serialize(); |
|
|
|
$.post( 'ajax/openid.php', post, function(data){ |
|
|
|
if( data.status == "success" ){ |
|
|
|
}else{ |
|
|
|
alert('error while setting OpenID'); |
|
|
|
} |
|
|
|
OC.msg.finishedSaving('#openidform .msg', data); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
// 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); |
|
|
|
}); |
|
|
|
}); |