Sha256: 86dd5f632429fe0abbe8bcf49971df58ec017d96cec93a2d3b8dced045c804eb

Contents?: true

Size: 742 Bytes

Versions: 4

Compression:

Stored size: 742 Bytes

Contents

I"Ú(function() {
  var cli_submit, focus_cli;

  focus_cli = function() {
    return $('.input_field').focus();
  };

  cli_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();
    cli_submit();
    return $(document).click(function() {
      return focus_cli();
    });
  });

  $(document).ajaxComplete(function() {
    focus_cli();
    return cli_submit();
  });

}).call(this);
:ET

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lunar_shell-0.5.2 test/dummy/tmp/cache/assets/sprockets/v3.0/Oc/oCL7jseOAiv7buPKNAnjA41nPOs-xZ7lAU9dTalOngc.cache
lunar_shell-0.5.0 test/dummy/tmp/cache/assets/sprockets/v3.0/Oc/oCL7jseOAiv7buPKNAnjA41nPOs-xZ7lAU9dTalOngc.cache
lunar_shell-0.4.1 test/dummy/tmp/cache/assets/sprockets/v3.0/Oc/oCL7jseOAiv7buPKNAnjA41nPOs-xZ7lAU9dTalOngc.cache
lunar_shell-0.3.0 test/dummy/tmp/cache/assets/sprockets/v3.0/Oc/oCL7jseOAiv7buPKNAnjA41nPOs-xZ7lAU9dTalOngc.cache