app/views/ajax.erb in tailog-0.1.5 vs app/views/ajax.erb in tailog-0.1.6
- old
+ new
@@ -5,10 +5,11 @@
<% file.seek params[:seek].to_i %>
<% file.each_line do |line| %>
<p><%= h line %></p>
<% end %>
<script type="text/javascript">
- window.fileSize = <%= file_size %>;
+ if (window.fileSize < <%= file_size %>)
+ window.fileSize = <%= file_size %>;
</script>
<% end %>
<% rescue => error %>
<div class="alert alert-danger">
<h4><%= h error.class %>: <%= h error.message %></h4>