From 7213c5c63738ed6913a73e90e2462ed1b038ef3e Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Thu, 25 Feb 2016 21:04:27 +0800 Subject: [PATCH] fix(log_online.html): log kill bug change $.ajax to $.get --- templates/jlog/log_online.html | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/templates/jlog/log_online.html b/templates/jlog/log_online.html index f82969156..14fec40ae 100644 --- a/templates/jlog/log_online.html +++ b/templates/jlog/log_online.html @@ -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") + }) }