app/views/logs/index.erb in tailog-0.3.1 vs app/views/logs/index.erb in tailog-0.3.2

- old
+ new

@@ -20,18 +20,18 @@ function loadMore() { $.post(window.location.href, { seek: window.fileSize }, function(json) { try { var data = JSON.parse(json); - var fileSizeKey = data.server_uuid + '-' + data.file_size; + var fileSizeKey = data.server_hostname + '-' + data.file_size; if (window.fileSizeDone[fileSizeKey]) return; window.fileSizeDone[fileSizeKey] = true; - window.fileSize[data.server_uuid] = data.file_size; + window.fileSize[data.server_hostname] = data.file_size; if (!data.content) return; var shouldScrollToBottom = $window.scrollTop() + $window.height() == $document.height(); $content - .append('<span class="text-info">' + data.server_uuid + '</span>') + .append('<span class="text-info">' + data.server_hostname + '</span>') .append(data.content); if (shouldScrollToBottom) { $window.scrollTop($document.height() - $window.height()); }