Fix password is being saved even if not changed

Fixes: http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-303
This commit is contained in:
Bart Visscher 2012-04-15 17:09:11 +02:00
parent 68b1ae1a36
commit 74ba09f95c
1 changed files with 4 additions and 0 deletions

View File

@ -33,7 +33,11 @@ $(document).ready(function(){
});
$('#lostpassword #email').blur(function(event){
if ($(this).val() == this.defaultValue){
return;
}
event.preventDefault();
this.defaultValue = $(this).val();
OC.msg.startSaving('#lostpassword .msg');
var post = $( "#lostpassword" ).serialize();
$.post( 'ajax/lostpassword.php', post, function(data){