From e101cf6e4ae3daad1510d03c65285741e3c24b70 Mon Sep 17 00:00:00 2001 From: fangshunjian Date: Thu, 15 Nov 2018 17:50:17 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=88=A0=E9=99=A4=20=E8=B0=83?= =?UTF-8?q?=E7=94=A8=20putty=20=E8=BF=9C=E7=A8=8B=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebRoot/js/onmouse.js | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/WebRoot/js/onmouse.js b/WebRoot/js/onmouse.js index 1fabdf4..c015442 100644 --- a/WebRoot/js/onmouse.js +++ b/WebRoot/js/onmouse.js @@ -603,4 +603,27 @@ function removeObj(){//点击标题栏触发的事件 function hideTitle(showContentSpanId) { $("#"+showContentSpanId).hide(); } - \ No newline at end of file + + /* + * 删除 调用 putty 远程连接 + */ + function removeRemoteConn(){ + $("a[onclick^='remoteConn']").each(function(i,n){ + var $this = $(n); + var content = $this.html(); + var parent = $this.parent(); + parent.html(content); + $this.remove(); + }); + } + + $(function(){ + //删除 调用 putty 远程连接 + removeRemoteConn(); + //修改ajax全局配置,ajax执行完成后调用,清除动态加载内容的 远程连接 + $.ajaxSetup({ + complete:function (XMLHttpRequest, textStatus) { + removeRemoteConn(); + } + }); + }); \ No newline at end of file