From 39b416352f627ef621713594880a0034686ed501 Mon Sep 17 00:00:00 2001 From: Sheng Date: Fri, 8 Dec 2017 21:15:56 +0800 Subject: [PATCH] Restore button on socket close --- static/js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/main.js b/static/js/main.js index 274b9e6..5e3d569 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -67,7 +67,8 @@ jQuery(function($){ console.log(e); term.destroy(); $('.container').show(); - $('#status').text(e.reason); + status.text(e.reason); + btn.prop('disabled', false); }; } });