1chil.account = function(){ 2 var lang = chil.localization.getLang(); 3 4 function setupResetPasswordCodeView(){ 5 var $form = $(".reset-password-form"); 6 var $loading = $(".loading-txt", $form); 7 var $btn = $(".button-submit", $form); 8 9 $(".reset-password-form").ajaxForm({ 10 beforeSubmit: function(){ 11 $btn.hide(); 12 $loading.show(); 13 }, 14 success: function(r){ 15 $loading.hide(); 16 $btn.show(); 17 18 if (r.ok) 19 chil.dialogs.alertDialog({ 20 title: "OK", 21 message: lang.resetPasswordCodeOk 22 }); 23 else { 24 var error = lang.pleaseTryAgainLater; 25 switch (r.error.msg){ 26 case 'user_not_found': 27 error = lang.userNotFound 28 break; 29 } 30 31 chil.dialogs.alertDialog({ 32 type: chil.dialogs.AlertType.ERROR, 33 title: "Error", 34 header: lang.oopsSomethingWasWrong, 35 message: error 36 }); 37 } 38 } 39 }); 40 } 41 42 function setupResetPasswordView(){ 43 var $form = $(".reset-password-form"); 44 var $loading = $(".loading-txt", $form); 45 var $btn = $(".button-submit", $form); 46 47 $(".reset-password-form").ajaxForm({ 48 beforeSubmit: function(){ 49 $btn.hide(); 50 $loading.show(); 51 }, 52 success: function(r){ 53 $loading.hide(); 54 $btn.show(); 55 56 if (r.ok) 57 chil.dialogs.alertDialog({ 58 title: "OK", 59 message: lang.passwordChanged 60 }); 61 else { 62 var error = lang.pleaseTryAgainLater; 63 switch (r.error.msg){ 64 case 'code_is_not_valid': 65 error = lang.invalidPasswordCode 66 break; 67 case 'user_not_found': 68 error = lang.userNotFound 69 break; 70 } 71 72 chil.dialogs.alertDialog({ 73 type: chil.dialogs.AlertType.ERROR, 74 title: "Error", 75 header: lang.oopsSomethingWasWrong, 76 message: error 77 }); 78 } 79 console.log(r); 80 81 82 } 83 }); 84 } 85 86 return { 87 setupResetPasswordCodeView: setupResetPasswordCodeView, 88 setupResetPasswordView: setupResetPasswordView 89 } 90}(); 91 92$('#wrapper,header').on('click',function(){ 93 if($('#ch-display-usermenu').prop( "checked") == true) { 94 $('#ch-display-usermenu').prop( "checked", false ); 95 } 96});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.