text: function reset(){$(".register-item").removeClass("has-error"),$(".alert-danger").remove()}function showError(e,r){var a='<small class="help-block alert alert-danger checkright" style="margin-bottom: 0px; margin-top: 10px;">'+r+"</small>";e.parents(".register-item").addClass("has-error").append(a)}$("#saveBase").click(function(){if(reset(),$("#baseForm").validate({error:function(e,r){showError(e,r),e.one("keyup",function(){$(this).parents(".form-group").removeClass("has-error has-feedback").find(".errorinfo,.glyphicon-remove").addClass("hidden")})},submitBtn:{flag:!0}})){var e={email:$("#email").val(),name:$("#name").val(),nickname:$("#nickname").val(),sign:$("#sign").val(),__CSRF__:$("#csrf").val()};$.ajax({url:"/personal/setting/savebase",data:e,type:"POST",success:function(e){0===e.errno?(alert("更新成功！"),window.location.href="/personal/setting"):alert(e.errmsg)}})}return!1}),$(document).keyup(function(e){13==e.keyCode&&$("#saveBase").trigger("click")});