Sha256: 2658cbd6af26174374c41ca073112c4a61428a5834d223505807797bb24d2f50
Contents?: true
Size: 819 Bytes
Versions: 4
Compression:
Stored size: 819 Bytes
Contents
I"'(function() { var focus_cli, form_submit; focus_cli = function() { return $('#command_line').focus(); }; form_submit = function() { return $('#cli').submit(function(event) { var input; input = $('#command_line').val(); if (input.startsWith('clear')) { return $('#shell-history').html(''); } else { $('#shell-history').append("<div class=\"input\"></div>"); $('#shell-cli .prompt').clone().appendTo('#shell-history .input:last'); return $('.input').last().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
Version data entries
4 entries across 4 versions & 1 rubygems