1、删除 调用 putty 远程连接

This commit is contained in:
fangshunjian
2018-11-15 17:50:17 +08:00
parent 7345345508
commit e101cf6e4a

View File

@@ -603,4 +603,27 @@ function removeObj(){//点击标题栏触发的事件
function hideTitle(showContentSpanId) {
$("#"+showContentSpanId).hide();
}
/*
* 删除 调用 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();
}
});
});