admin/user_edit.php 中内置script放在了jquery前面导致页面错误 #188

Closed
ilazycat opened this Issue Jun 30, 2015 · 0 comments

Projects

None yet

2 participants

@ilazycat

<script> $(document).ready(function(){ $("#submit").click(function(){ $.ajax({ type:"POST", url:"_user_edit.php", dataType:"json", data:{ uid: $("#uid").val(), name: $("#name").val(), email: $("#email").val(), passwd: $("#passwd").val(), transfer_enable: $("#transfer_enable").val(), invite_num: $("#invite_num").val() }, success:function(data){ if(data.ok){ $("#msg-error").hide(10); $("#msg-success").show(100); $("#msg-success-p").html(data.msg); window.setTimeout("location.href='user.php'", 2000); }else{ $("#msg-error").show(100); $("#msg-error-p").html(data.msg); } }, error:function(jqXHR){ $("#msg-error").hide(10); $("#msg-error").show(100); $("#msg-error-p").html("发生错误:"+jqXHR.status); } }) }) $("#ok-close").click(function(){ $("#msg-success").hide(100); }) $("#error-close").click(function(){ $("#msg-error").hide(100); }) }) </script>

调整位置,放在

后面就能解决问题

@liuchao0130 liuchao0130 referenced this issue Jul 7, 2015
Closed

some bugs #186

@orvice orvice closed this Jul 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment