X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0ccf1750b4143223e729fc3212b5e4b0a447b420..72a8bf2138429b61dfc9710cc41932396b6f5b4f:/public/webshell/shell_in_a_box.js diff --git a/public/webshell/shell_in_a_box.js b/public/webshell/shell_in_a_box.js index c258b5d731..6b0a5b69b5 100644 --- a/public/webshell/shell_in_a_box.js +++ b/public/webshell/shell_in_a_box.js @@ -128,7 +128,7 @@ function ShellInABox(url, container) { }; extend(ShellInABox, VT100); -ShellInABox.prototype.sessionClosed = function() { +ShellInABox.prototype.sessionClosed = function(msg) { try { this.connected = false; if (this.session) { @@ -136,7 +136,7 @@ ShellInABox.prototype.sessionClosed = function() { if (this.cursorX > 0) { this.vt100('\r\n'); } - this.vt100('Session closed.'); + this.vt100(msg || 'Session closed.'); this.currentRequest.abort(); } // Revealing the "reconnect" button is commented out until we hook