Improve session closing
parent
9c846cca54
commit
cf20e90cc6
|
@ -2,9 +2,10 @@
|
|||
|
||||
$(document).ready(() => {
|
||||
let $shell = $("#shell");
|
||||
if (!$shell) {
|
||||
if ($shell.length < 1) {
|
||||
return;
|
||||
}
|
||||
let $close = $(".shell-close");
|
||||
|
||||
let closeTimeout = null;
|
||||
|
||||
|
@ -90,4 +91,8 @@ $(document).ready(() => {
|
|||
}, 2000);
|
||||
});
|
||||
|
||||
$close.click(() => {
|
||||
socket.disconnect();
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<nav class="navbar navbar-light bg-light fixed-bottom justify-content-between">
|
||||
<div class="btn-group mr-auto" role="group">
|
||||
<a class="btn btn-primary" href="/{{path}}">
|
||||
<a class="btn btn-primary" href="/{{path}}" class="shell-close">
|
||||
<span class="octicon octicon-chevron-left"></span>
|
||||
Close shell
|
||||
</a>
|
||||
|
|
Loading…
Reference in New Issue