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

Version Path
lunar_shell-0.5.2 test/dummy/tmp/cache/assets/sprockets/v3.0/8R/8REJulo9RkuUa8rl5K0OPGcMFtSB3s0mMDDaakXF7V0.cache
lunar_shell-0.5.0 test/dummy/tmp/cache/assets/sprockets/v3.0/8R/8REJulo9RkuUa8rl5K0OPGcMFtSB3s0mMDDaakXF7V0.cache
lunar_shell-0.4.1 test/dummy/tmp/cache/assets/sprockets/v3.0/8R/8REJulo9RkuUa8rl5K0OPGcMFtSB3s0mMDDaakXF7V0.cache
lunar_shell-0.3.0 test/dummy/tmp/cache/assets/sprockets/v3.0/8R/8REJulo9RkuUa8rl5K0OPGcMFtSB3s0mMDDaakXF7V0.cache