From 702b1bd3b780de79868fc3ee39c656541b311510 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 3 Mar 2016 18:05:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(ws=20protocal):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=89=80=E6=9C=89ws=E8=87=AA=E5=8A=A8=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 自动获取websocket无需再手动指定 --- jlog/views.py | 3 --- templates/foot_script.html | 1 - templates/jlog/log_online.html | 23 ++++++++++++----------- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/jlog/views.py b/jlog/views.py index 0d49269b6..df726c1a7 100644 --- a/jlog/views.py +++ b/jlog/views.py @@ -9,7 +9,6 @@ from django.http import HttpResponseNotFound from jlog.log_api import renderTemplate from jlog.models import Log, ExecLog, FileLog -from jumpserver.settings import WEB_SOCKET_URL @require_role('admin') @@ -66,8 +65,6 @@ def log_list(request, offset): contact_list, p, contacts, page_range, current_page, show_first, show_end = pages(posts, request) - web_monitor_url = '%s/monitor' % WEB_SOCKET_URL - web_kill_url = '/kill' session_id = request.session.session_key return render_to_response('jlog/log_%s.html' % offset, locals(), context_instance=RequestContext(request)) diff --git a/templates/foot_script.html b/templates/foot_script.html index 7d0890e20..eb653ad8c 100644 --- a/templates/foot_script.html +++ b/templates/foot_script.html @@ -36,6 +36,5 @@ } else { $("#"+s1).addClass('active'); $('#'+s1+' .'+s2).addClass('active'); - console.log(s1) } diff --git a/templates/jlog/log_online.html b/templates/jlog/log_online.html index c17c92129..3e8898b79 100644 --- a/templates/jlog/log_online.html +++ b/templates/jlog/log_online.html @@ -128,17 +128,17 @@ -{##}