From: David Reagan Date: Tue, 16 Apr 2013 20:22:04 +0000 (-0700) Subject: Removed extra id from jquery selectors. Remove console.log call. Removed commented... X-Git-Tag: v6.0.0alpha2~898^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0dd6f16e0b57da5239992ceacd90a9c9d01bc9e8;p=nextcloud-server.git Removed extra id from jquery selectors. Remove console.log call. Removed commented code. --- diff --git a/settings/js/personal.js b/settings/js/personal.js index 9c960a180a1..7c879bcafe9 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -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); }