I"q(function() {
var focus_cli, form_submit;
focus_cli = function() {
return $('#command_line').focus();
};
form_submit = function() {
return $('#cli').submit(function(e) {
var input;
e.preventDefault();
alert('yo');
input = "
" + $('#prompt').text() + "
";
return $('.shell-history').append(input);
});
};
$(function() {
focus_cli();
form_submit();
return $(document).click(function() {
return focus_cli();
});
});
$(document).ajaxComplete(function() {
focus_cli();
return form_submit();
});
}).call(this);
:ET