From: Bart Visscher Date: Sun, 15 Apr 2012 15:09:11 +0000 (+0200) Subject: Fix password is being saved even if not changed X-Git-Tag: v4.0.0beta~288 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=74ba09f95c57bc0cc8d7e8617cefe26f13054799;p=nextcloud-server.git Fix password is being saved even if not changed Fixes: http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-303 --- diff --git a/settings/js/personal.js b/settings/js/personal.js index 8108da433c8..77d103c53b6 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -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){