Sha256: e719c434c507a47dadcea8614dd14fa6b3053046f0feba80338ebf41399c5742

Contents?: true

Size: 1.01 KB

Versions: 4

Compression:

Stored size: 1.01 KB

Contents

I"ü(function() {
  var cli_submit, focus_cli, set_input_field_width;

  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);
      }
    });
  };

  set_input_field_width = function() {
    var body_w, prompt_w;
    body_w = $('body').width();
    prompt_w = $('#shell-cli label').width();
    return $('.input_field').width(body_w - prompt_w - 50);
  };

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

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

}).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/8K/8KMAgrO07_-xfCJacBS290YYLHXDq124FaL4hke0DVU.cache
lunar_shell-0.5.0 test/dummy/tmp/cache/assets/sprockets/v3.0/8K/8KMAgrO07_-xfCJacBS290YYLHXDq124FaL4hke0DVU.cache
lunar_shell-0.4.1 test/dummy/tmp/cache/assets/sprockets/v3.0/8K/8KMAgrO07_-xfCJacBS290YYLHXDq124FaL4hke0DVU.cache
lunar_shell-0.3.0 test/dummy/tmp/cache/assets/sprockets/v3.0/8K/8KMAgrO07_-xfCJacBS290YYLHXDq124FaL4hke0DVU.cache