From 04f8cb233d8851773effeebd3efaffe644bb991e Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Wed, 18 Apr 2018 01:02:41 -0300 Subject: [PATCH] Focus term when switchin instance Fixes #253 --- www/assets/app.js | 2 +- www/default/index.html | 2 +- www/k8s/index.html | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/www/assets/app.js b/www/assets/app.js index cf6d09a..c5cb6d6 100644 --- a/www/assets/app.js +++ b/www/assets/app.js @@ -406,8 +406,8 @@ $timeout(function() { }, 0, false); }, 0, false); - return } + instance.term.focus(); } $scope.removeInstance = function(name) { diff --git a/www/default/index.html b/www/default/index.html index 068ff05..d8cb356 100644 --- a/www/default/index.html +++ b/www/default/index.html @@ -306,7 +306,7 @@ - + diff --git a/www/k8s/index.html b/www/k8s/index.html index 5e9b58d..19c2360 100644 --- a/www/k8s/index.html +++ b/www/k8s/index.html @@ -223,7 +223,6 @@ -