Removed extra id from jquery selectors. Remove console.log call. Removed commented code.
This commit is contained in:
parent
6d812ada05
commit
0dd6f16e0b
1 changed files with 2 additions and 4 deletions
|
@ -8,12 +8,10 @@
|
|||
* Post the email address change to the server.
|
||||
*/
|
||||
function changeEmailAddress(){
|
||||
emailInfo = $('#lostpassword #email');
|
||||
console.log("Timout done.");
|
||||
emailInfo = $('#email');
|
||||
if (emailInfo.val() === emailInfo.defaultValue){
|
||||
return;
|
||||
}
|
||||
//event.preventDefault();
|
||||
emailInfo.defaultValue = emailInfo.val();
|
||||
OC.msg.startSaving('#lostpassword .msg');
|
||||
var post = $( "#lostpassword" ).serialize();
|
||||
|
@ -80,7 +78,7 @@ $(document).ready(function(){
|
|||
|
||||
});
|
||||
|
||||
$('#lostpassword #email').keyup(function(){
|
||||
$('#email').keyup(function(){
|
||||
if(typeof timeout !== 'undefined'){
|
||||
clearTimeout(timeout);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue