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