mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
ssh update 90%
This commit is contained in:
@@ -293,8 +293,25 @@ function Terms_WebSocketIO_Create(ip, random){
|
||||
});
|
||||
|
||||
n.registerConnectedCallBack(function(){
|
||||
var that = this;
|
||||
$('.term_item_tab .item').each(function(){
|
||||
var id = $(this).data('id');
|
||||
if (id == that.id){
|
||||
$(this).find('.icon').removeClass('icon-warning').addClass('icon-sucess');
|
||||
}
|
||||
});
|
||||
webShell_Resize();
|
||||
});
|
||||
|
||||
n.registerExitCallBack(function(){
|
||||
var that = this;
|
||||
$('.term_item_tab .item').each(function(){
|
||||
var id = $(this).data('id');
|
||||
if (id == that.id){
|
||||
$(this).find('.icon').removeClass('icon-sucess').addClass('icon-warning');
|
||||
}
|
||||
});
|
||||
});
|
||||
return n;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user