]> source.dussan.org Git - nextcloud-server.git/commitdiff
Removed extra id from jquery selectors. Remove console.log call. Removed commented...
authorDavid Reagan <reagand@lanecc.edu>
Tue, 16 Apr 2013 20:22:04 +0000 (13:22 -0700)
committerDavid Reagan <reagand@lanecc.edu>
Tue, 16 Apr 2013 20:22:04 +0000 (13:22 -0700)
settings/js/personal.js

index 9c960a180a14a895f62cb9d3a54d15de7890c9cd..7c879bcafe91beb2aed699b9051a33357737f89c 100644 (file)
@@ -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);
         }