Sha256: 9a82be636b665c0ea2289a8dec6bd7d371b203c3c25833b5572912473264ea30
Contents?: true
Size: 747 Bytes
Versions: 8
Compression:
Stored size: 747 Bytes
Contents
I"ß(function() { var focus_cli, form_submit; focus_cli = function() { return $('#command_line').focus(); }; form_submit = function() { return $('#cli').submit(function(e) { var input; input = $('#command_line').val(); if (input !== 'clear') { $('#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
8 entries across 4 versions & 1 rubygems