I"Û(function() { var cli_submit, focus_cli; focus_cli = function() { return $('.command_line').focus(); }; cli_submit = function() { return $('#cli').submit(function(e) { var input; input = $('#command_line').val(); if (input !== 'clear') { $('#shell-history').append("
"); $('#shell-cli .prompt').clone().appendTo('#shell-history .input:last'); return $('.input').last().append(input); } }); }; $(function() { focus_cli(); cli_submit(); return $(document).click(function() { return focus_cli(); }); }); $(document).ajaxComplete(function() { focus_cli(); return cli_submit(); }); }).call(this); :ET