Sha256: e178f1b0edff55e3c3a677ae35a9931e6a3a981801ffab9c455f1bfad8635a5b

Contents?: true

Size: 450 Bytes

Versions: 167

Compression:

Stored size: 450 Bytes

Contents

var scrolledToBottom = ($(window).scrollTop() + $(window).height() == $(document).height());

var lines = '<%=j render :partial => 'output_line_set', :collection => @line_sets %>';
var target = $("div.terminal div.printable");

<% if @since %>
  target.append(lines);
<% else %>
  target.html(lines);
<% end %>

<%= render :partial => 'refresh.js' %>

if (scrolledToBottom) {
  $("html, body").animate({ scrollTop: $(document).height() }, "slow");
}

Version data entries

167 entries across 167 versions & 1 rubygems

Version Path
foreman_remote_execution-0.2.1 app/views/template_invocations/show.js.erb
foreman_remote_execution-0.1.2 app/views/template_invocations/show.js.erb
foreman_remote_execution-0.1.1 app/views/template_invocations/show.js.erb
foreman_remote_execution-0.1.0 app/views/template_invocations/show.js.erb
foreman_remote_execution-0.0.10 app/views/template_invocations/show.js.erb
foreman_remote_execution-0.0.8 app/views/template_invocations/show.js.erb
foreman_remote_execution-0.0.7 app/views/template_invocations/show.js.erb