From e3e3e36dea58df3baaea91d52d9e210e2b80210b Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 19 Feb 2019 13:57:53 +0800 Subject: [PATCH] Update webssh.js --- plugins/webssh/js/webssh.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/webssh/js/webssh.js b/plugins/webssh/js/webssh.js index 6dbcae60f..0245ba973 100755 --- a/plugins/webssh/js/webssh.js +++ b/plugins/webssh/js/webssh.js @@ -19,6 +19,7 @@ function web_shell2() { setTimeout(function () { layer.closeAll(); term.destroy(); + clearInterval(interval); }, 500); } }); @@ -51,13 +52,13 @@ function web_shell2() { ', cancel: function () { term.destroy(); - clearInterval(interval) + clearInterval(interval); } }); $(".shell_btn_close").click(function(){ layer.close(term_box); term.destroy(); - clearInterval(interval) + clearInterval(interval); }) setTimeout(function () { @@ -157,9 +158,7 @@ function web_shell2() { } }); - }, 100) - - + }, 100); } function shell_to_baidu() {