Update webssh.js

pull/109/head
Mr Chen 6 years ago
parent 3ae56c894a
commit e3e3e36dea
  1. 9
      plugins/webssh/js/webssh.js

@ -19,6 +19,7 @@ function web_shell2() {
setTimeout(function () { setTimeout(function () {
layer.closeAll(); layer.closeAll();
term.destroy(); term.destroy();
clearInterval(interval);
}, 500); }, 500);
} }
}); });
@ -51,13 +52,13 @@ function web_shell2() {
</div>', </div>',
cancel: function () { cancel: function () {
term.destroy(); term.destroy();
clearInterval(interval) clearInterval(interval);
} }
}); });
$(".shell_btn_close").click(function(){ $(".shell_btn_close").click(function(){
layer.close(term_box); layer.close(term_box);
term.destroy(); term.destroy();
clearInterval(interval) clearInterval(interval);
}) })
setTimeout(function () { setTimeout(function () {
@ -157,9 +158,7 @@ function web_shell2() {
} }
}); });
}, 100) }, 100);
} }
function shell_to_baidu() { function shell_to_baidu() {

Loading…
Cancel
Save