fix(log_online.html): log kill bug

change $.ajax to $.get
pull/87/head
liuzheng712 2016-02-25 21:04:27 +08:00
parent d0ba0503e5
commit 7213c5c637
1 changed files with 4 additions and 7 deletions

View File

@ -213,14 +213,11 @@
if (login_type=='web'){
var g_url = '{{ web_kill_uri }}' + '?id=' + num;
} else {
var g_url = "{% url 'log_kill' %} }?id=" + num;
var g_url = "{% url 'log_kill' %}?id=" + num;
}
$.ajax({
type: "GET",
url: g_url+"&sessionid={{ session_id }}",
success: window.open("{% url 'log_list' 'online' %}", "_self")
});
$.get(g_url+"&sessionid={{ session_id }}", function () {
window.open("{% url 'log_list' 'online' %}", "_self")
})
}
</script>