Commit 0dd6f16e authored by David Reagan's avatar David Reagan
Browse files

Removed extra id from jquery selectors. Remove console.log call. Removed commented code.

parent 6d812ada
...@@ -8,12 +8,10 @@ ...@@ -8,12 +8,10 @@
* Post the email address change to the server. * Post the email address change to the server.
*/ */
function changeEmailAddress(){ function changeEmailAddress(){
emailInfo = $('#lostpassword #email'); emailInfo = $('#email');
console.log("Timout done.");
if (emailInfo.val() === emailInfo.defaultValue){ if (emailInfo.val() === emailInfo.defaultValue){
return; return;
} }
//event.preventDefault();
emailInfo.defaultValue = emailInfo.val(); emailInfo.defaultValue = emailInfo.val();
OC.msg.startSaving('#lostpassword .msg'); OC.msg.startSaving('#lostpassword .msg');
var post = $( "#lostpassword" ).serialize(); var post = $( "#lostpassword" ).serialize();
...@@ -80,7 +78,7 @@ $(document).ready(function(){ ...@@ -80,7 +78,7 @@ $(document).ready(function(){
}); });
$('#lostpassword #email').keyup(function(){ $('#email').keyup(function(){
if(typeof timeout !== 'undefined'){ if(typeof timeout !== 'undefined'){
clearTimeout(timeout); clearTimeout(timeout);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment