From: Scott Baker Date: Thu, 19 Jun 2014 21:32:52 +0000 (-0700) Subject: get rid of focus box, make input focus any time terminal is clicked X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=79bb6780df2513f0245bf81683645e27637ffc19;p=plstackapi.git get rid of focus box, make input focus any time terminal is clicked --- diff --git a/planetstack/core/static/shell/opencloud_shell.css b/planetstack/core/static/shell/opencloud_shell.css index f535cd0..97df0a2 100644 --- a/planetstack/core/static/shell/opencloud_shell.css +++ b/planetstack/core/static/shell/opencloud_shell.css @@ -15,8 +15,7 @@ #terminal input { width: 875px; margin: 1px 0 1px 10px; - border: 1px dotted; - border-color:#808080; + border: none; display: inline; padding: 2px; background: black; @@ -26,6 +25,10 @@ border-radius:0; } +#terminal input:focus { + box-shadow:none; +} + #terminal p { margin: 2px; color: #45FF17; diff --git a/planetstack/core/static/shell/opencloud_shell.js b/planetstack/core/static/shell/opencloud_shell.js index d57d475..ab5a355 100644 --- a/planetstack/core/static/shell/opencloud_shell.js +++ b/planetstack/core/static/shell/opencloud_shell.js @@ -338,6 +338,8 @@ function startTerminal() { $("#terminal_help1").show(); $("#terminal_help2").show(); $("#terminal_wait").hide(); + + $("#terminal").bind('click', function() { $(".readLine.active").focus(); }); }; $(document).ready(function() {